471,354 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Memory Leak HELP!

In my application I use several class files that contain reusable code. I
create an instance of a class (once) when ever I need to use it.

//stand-alone cs file
XHTML_Library objXHTMLHolder = new XHTML_Library();
objXHTMLHolder.[sub I need to access in the CS file]
(How do I dispose of objXHTMLHolder at the end of the page)

Over time as the application runs, I will eventually get Sever Application
Unavailable message when access the site. Restarting the server fixes this
problem, but I have been unable to correct the problem for the long haul. I
believe it is a memory leak from items in the CS files not being disposed. I
have made sure that datasets I’m using are being disposed. I also monitor
large Session variables to dispose of them properly when no longer needed. I
have even tried to run the GC manually. This app can have as many as 200
people on at one time. The server has 6GB of memory. If the GC is working,
its not doing it fast enough LOL.

My question is, how/can I dispose of objXHTMLHolder from the calling page?
I can’t use objXHTMLHolder.Dispose() . Not an option. My guess is its b/c
it’s a reference to a sub in the CS file and not a .NET object

Any insight anyone could provide would be grateful. Even other possible
solutions 

..NET Software Developer
Jul 21 '05 #1
0 995

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Morten Aune Lyrstad | last post: by
4 posts views Thread by Don Nell | last post: by
20 posts views Thread by jeevankodali | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.