teixeira Posted September 27, 2006 Posted September 27, 2006 Good Morning for everyone, I have a C# application that when running ~2 days it increases very much the windows virtual memory, taking windows xp displaying a systray message balloon telling that windows virtual memory is low. The physical memory is OK about 300MB , but another thing (regarding taskmanager) is also the number of hanlges and I/O Writes that the application has. Its all managed code, i only have an unmanaged active-x that makes image acquisition from a camera. Code has some threads that access to a database, and writes every 3 minutes 4 BMP images abot 3MB in to disk, and some textfiles used has logs. . Does anyone know how to avoid this, or does someone know how to handle this correctly? TIA, Tiago Teixeira Quote
Administrators PlausiblyDamp Posted September 27, 2006 Administrators Posted September 27, 2006 Are you disposing of any bitmaps / images you are creating? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
teixeira Posted September 27, 2006 Author Posted September 27, 2006 I'm user 3rd part control to get images, an active-x and a couple dll writen in c++. I create a private varivel declaring the active-x that will show me the images. i instantiate it once in the static class function i created for call when i need to get image, i set my properties also and i use it everytime i need. i think is a good procedure doing like this. i create ba single object and i use it all the time until program closes() can take weeks. Any sugestion or comment? TIA, Tiago Teixeira Quote
Leaders snarfblam Posted September 27, 2006 Leaders Posted September 27, 2006 If you are certain that you are disposing all of the IDisposable objects that you aquire/create then I would say that the third party components should be your biggest suspect. Could you be more specific about what these thiry party components/DLLs do? Quote [sIGPIC]e[/sIGPIC]
Administrators PlausiblyDamp Posted September 27, 2006 Administrators Posted September 27, 2006 You might want to use a tool like CLRProfiler to check what data types are taking up the most memory and where they are being allocated. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.