Hi Carlos,

Ok, GC.Collect() causes an immediate GC, so they should all be cleared then, I guess.

Thanks,
Jess


On 1/15/06, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
Hello:
> I have a question w/r/t the freeing of IDbCommand instances... it
> seems that if .Dispose is not called on these instances the Firebird
> server instance grows significantly over time.  I understand that
> calling .Dispose on these is in general a good practice, however, I do
> believe that these should be disposed of during a normal GC as well.
>
> Are these normally disposed during GC?  Will GC.Collect () cause them
> all to be immediately disposed of?
It should, but will be the gc who determines when the they are going to
bre reclaimed.
> If not, applications could easily suffer from spurious leaks due to
> issues with the common best practices for calling .Dispose on heavy
> objects within .Net.
Well, use Dispose and you shouldn't have that problems.



--
Carlos Guzmán Álvarez
Vigo-Spain

http://carlosga.blogspot.com/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to