- Apr 10, 2005
- 2,131
- 21
- 81
I'm curious about this. One of my apps does a bunch of gdi+ image manipulation and creation, obviously including bitmaps. Now, just recently I realized that I had neglected to run the dispose method on the graphics objects. Went through and corrected it, but I'm curious.
There hasn't seemed to have been any excessive memory usage - and the thing's been producing hundreds of images. I would expect a pretty sharp rise in memory usage if the things were just staying in memory. But this is an ASP.net application, so I'd expect that when the process is done running, the whole shebang gets unloaded, and disposed or not, bitmaps that aren't being saved into a global cache or session variable would go kaput.
Is this correct? Anything I might need to know?
There hasn't seemed to have been any excessive memory usage - and the thing's been producing hundreds of images. I would expect a pretty sharp rise in memory usage if the things were just staying in memory. But this is an ASP.net application, so I'd expect that when the process is done running, the whole shebang gets unloaded, and disposed or not, bitmaps that aren't being saved into a global cache or session variable would go kaput.
Is this correct? Anything I might need to know?
