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)
End
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
--
JP
..NET Software Developer