[V4Rb 2] VDatabase.Close

Charles Yeomans yeomans at desuetude.com
Wed Jun 1 10:37:33 CDT 2005


On Jun 1, 2005, at 4:39 AM, Ruslan Zasukhin wrote:

> On 6/1/05 2:46 AM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>
> Hi Charles,
>
>> Is VDatabase.Close called somewhere in a destructor?  I recall that
>> this was a bit of an issue with V4Rb 1, at least for Windows.
>
> You mean automatically ?
>
> Yes kernel defend self from such mistake.
>
> But still will be good if developer do
>
>     db.close
>     db = nil

I don't see why it is a mistake not to call Close.  Indeed, it is a 
mistake in my opinion for there to be a Close method.  Perhaps you've 
heard of "resource acquisition is initialization" ... :)

--------------
Charles Yeomans



More information about the Valentina mailing list