Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Deployment / September 2008



Tip: Looking for answers? Try searching our database.

VB.NET Memory Leaks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sonu - 05 Sep 2008 03:30 GMT
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/library/system.idisposable.aspx
http://www.java2s.com/Code/VB/Development/Forceagarbagecollect.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
Ralph - 05 Sep 2008 08:02 GMT
> Hello -
>
[quoted text clipped - 21 lines]
>
> Any help would be greatly apprecited with a sample code.

Wrong group. You need to post in a dotNet newsgroup.

When you do post you might explain why this is a problem.

-ralph
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.