On Sep 5, 12:50*pm, "Sonu" <replymeo...@hotmail.comwrote:
Quote:
Hello -
>
I have the following code in my vb.net app and when it runs, the memory
usage at the Windows Task Manager keeps increasing for the application and
stops after a while. I'm using some bitmaps and sound in the program.
>
How would I stop the size thing to increase! I went to these link already
but I cannot fix this issue.
http://msdn.microsoft.com/en-us/libr...agecollect.htm
>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
* * * * If disposing AndAlso components IsNot Nothing Then
* * * * * * components.Dispose()
* * * * * * GC.SuppressFinalize(Me)
* * * * End If
MyBase.Dispose(disposing)
End Sub
>
Protected Overrides Sub Finalize()
* * * * MyBase.Finalize()
* * * * Dispose()
End Sub
>
Any help would be greatly apprecited with a sample code.
>
Thanks,
Sonu
There may not even be a problem. You said that memory usage as it
appears in Task Manager stops at some point. That's a pretty good
indication that your application is not leaking memory.