[bug report 2040] Vserver, NOTE 2. HOW TO write client/server apps

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Dec 13 23:06:18 CST 2006


On 12/06/13 10:30 PM, "Charles Yeomans" <charles at declareSub.com> wrote:

>>>> Yes. Destructor of connection close self before destroying.
>>> 
>>> It appears to do so in the simplest test.  But this code
>>> 
>>>    dim c as new VConnection("localhost", "sa", "sa")
>>>    c.Open
>>>    dim db as new VDatabase(c)
>>>    db.Open new FolderItem("testdb")
>>>    db.Close
>>> 
>>> still eats up connections.
>> 
>> Charles, wait.
>> 
>> Above YOU and ME have told that Vconnection destructor must close
>> connection.
>> 
>> Right?
> 
> Right.
>> 
>> Where you see in this code call of destructor of Vconnection?
>> You think it must be called on exit of method?
>> And it is not called? This can be checked in the V4RB_LOG.
> 
> It must be called, and it is called.  I checked the V4RB log file.

So destructor is called, but connection is not closed on server...
In the code above.

But exists OTHER code where we do

       c = nil 

And then connection is closed ??

How this can be? 
Ivan, please check again all this.
 

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list