closing db
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Mar 13 15:55:47 CDT 2007
On 13/3/07 8:37 PM, "jda" <jda at his.com> wrote:
>>> Hi Ruslan,
>>>
>>> I find the if I delete a database in RB (f.delete), the "isOpen"
>>> property is still set to true. A subsequent .close -> VException
>>> (file not found).
>>>
>>> My question is, is it safe to just set the db to nil without doing an
>>> explicit .close? That is, does setting a db to nil automatically
>>> perform the close functions.
>>
>> But db destructor will do close if it is IsOpen = true
>>
>
> Good. Just to make sure I understnad, I can just do
>
> myDB = nil
>
> without doing a myDB.close first.
>
> That helps a lot.
I do not see how it helps.
And by theory you should do PAIR steps
open - close
new - delete (= nil)
--
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