|
-
Mar 17th, 2005, 11:35 AM
#1
Thread Starter
Fanatic Member
Garbage Collector
Anyone have a good method for causing the window's garbage collector to run?
-
Mar 17th, 2005, 03:25 PM
#2
Re: Garbage Collector
I'm not sure there is such a thing. You can force a garbage collector run for your application by using System.GC.Collect().
Cheers,
NTG
-
Mar 17th, 2005, 03:30 PM
#3
Re: Garbage Collector
 Originally Posted by ntg
I'm not sure there is such a thing. You can force a garbage collector run for your application by using System.GC.Collect().
Cheers,
NTG
lol isn't your solution doing what you said you weren't sure existed
-
Mar 17th, 2005, 03:37 PM
#4
I don't live here any more.
-
Mar 17th, 2005, 03:45 PM
#5
Thread Starter
Fanatic Member
Re: Garbage Collector
did I post this in the .Net forum or did it get moved?
Anyway, guess maybe I shoulda specified that I was working in vb6.
-
Mar 17th, 2005, 03:48 PM
#6
Re: Garbage Collector
 Originally Posted by kleinma
lol isn't your solution doing what you said you weren't sure existed

I don't think there is a garbage collector for a window alone.
-
Mar 17th, 2005, 03:50 PM
#7
Re: Garbage Collector
 Originally Posted by ntg
 I don't thing there is a garbage collector for a window alone. 
i took it as the window's garbage collector as in
the Microsoft Windows garbage collector... (as in the CRL garbage collector)
-
Mar 17th, 2005, 04:15 PM
#8
Re: Garbage Collector
 Originally Posted by ntg
I'm not sure there is such a thing. You can force a garbage collector run for your application by using System.GC.Collect().
Cheers,
NTG
you need to call GC.WaitForPendingFinilizers() right after that
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Mar 17th, 2005, 04:20 PM
#9
Re: Garbage Collector
 Originally Posted by MrPolite
you need to call GC.WaitForPendingFinilizers() right after that
Why is that ?
-
Mar 17th, 2005, 06:33 PM
#10
Re: Garbage Collector
 Originally Posted by ntg
Why is that ?
pauses your thread
http://msdn.microsoft.com/library/de...izersTopic.asp
umm to be honest I've been using it blindly. Back yay when I was learning about vb.net for the first time, I read in a book or wherever that you should always call that after gc.collect().... that isnt completely true I guess
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Mar 18th, 2005, 06:49 AM
#11
Re: Garbage Collector
Yeah, I thought that you should call that only if you need to wait for GC to finish. That would be the case if you need finalizers to finish their work and therefore release all resources.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|