[Mono-list] Mono Sqlite Question
Marc Glenn
mjamon at ntsp.nec.co.jp
Fri Aug 15 02:40:20 EDT 2008
Ok. Thank you very much for the response. :)
Chris Howie wrote:
> On Fri, Aug 15, 2008 at 2:04 AM, Marc Glenn <mjamon at ntsp.nec.co.jp> wrote:
>
>> I want to ask why it is important to assign null to the Sqlite objects
>> used in the main function.
>> Since the function will exit and the local variables used will be
>> deallocated,
>> Is it really important to assign null to those variables?
>> Is there a specific behaviour of Mono Sqlite that I should know about?
>>
>
> Those lines will do pretty much nothing, semantically speaking.
> Usually when you dispose or "close" something in general it's a good
> idea to assign null to it, but usually that's more in the case of
> object fields when that object may still exist for a while. This
> allows the GC to reclaim those objects if the object that was holding
> references isn't eligible for GC yet. In this case it's not necessary
> or useful.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080815/64286a1a/attachment.html
More information about the Mono-list
mailing list