RB Destructors - Still Confused

Ian Devaney idevaney at mac.com
Mon Jun 28 10:23:03 CDT 2004


Thanks Charles.

Yes, I am closing the databases and then setting the reference to nil.

I suppose I still must have a reference I can't find!

Cheers,

Ian


On 27 Jun 2004, at 5:00 pm, valentina-request at lists.macserve.net wrote:

> Message: 10
> Date: Sat, 26 Jun 2004 12:23:02 -0400
> From: Charles Yeomans <yeomans at desuetude.com>
> Subject: Re: RB Destructors - Still Confused
> To: Valentina Developers <valentina at lists.macserve.net>
> Message-ID: <186113FD-C78D-11D8-8FA7-000A957CB4CC at desuetude.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>
> On Jun 26, 2004, at 11:25 AM, Ian Devaney wrote:
>
>> I mentioned a while ago that I was having trouble tracking down a
>> database reference in my app that was leaving base objects and fields
>> in the runtime.objects info.
>>
>> I'm still none the wiser and even more confused.
>>
>> When I look at these objects in the debugger, the base objects all
>> have a "database" property that is "nil".
>>
>> I presume this means I have successfully destroyed the references to
>> their parent databases.
>>
>> If this is the case, why would these objects still exist?
>
> Probably because some other object is hanging onto a reference.  When
> you close the database, are you calling VDatabase.Close?  I don't know
> how Valentina is doing things internally, but it might be that you
> should call the Close function so that Valentina can clean up any
> circular references.
>
> Otherwise, you're going to have to start working through the code to
> see where references to objects are assigned and released.
>
> --------------
> Charles Yeomans



More information about the Valentina mailing list