|
-
Sep 26th, 2002, 10:21 PM
#1
*resolved* Garbage collection?
In my program, I'm declaring like 4 arrays that list all the system processes and I have that in a timer with an inteval of 1 second
well it turned out that the ram usage of the app was increasing with each call of the timer, so I'm doing a garbage collection with each call of the timer 
2 questions: does it really slow down the app to call the grabage collector this much? and should I even bother to call it, or does it get called automatically?
Last edited by MrPolite; Sep 27th, 2002 at 08:04 PM.
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!!
-
Sep 26th, 2002, 11:03 PM
#2
Fanatic Member
ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconautomaticmemorymanagement.htm
The general sway of what I've read is leave garbage collection the hell alone and let it do its job
-
Sep 27th, 2002, 04:18 PM
#3
New Member
yes, that's what they say, but there are plenty of situations when calling gc is absolutely neccesary. when you figure out that too much memory usage slowes down the system and automatic gc under that condition even more, there is not much else to do then calling gc prior to that yourself,
best regards
Sascha
-
Sep 27th, 2002, 04:29 PM
#4
thanks for the info....
I dont know if this will slow down the machine or not: the memory usage of my app increases about 400KB each second (without GC). But the thing is that it doesnt lock any resources, so I'm not sure what I should do? should I just leave it to GC even though it increases this fast? .....
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!!
-
Sep 28th, 2002, 04:25 PM
#5
New Member
unfortunately there is only one way to find out: try both and see,
good luck
Sascha
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
|