[Mono-list] Mono Sqlite Question
cdhowie at gmail.com
Fri Aug 15 02:25:50 EDT 2008
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
> 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
More information about the Mono-list