Ok. Thank you very much for the response. :)

Chris Howie wrote:
On Fri, Aug 15, 2008 at 2:04 AM, Marc Glenn <[EMAIL PROTECTED]> 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.


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to