I have a fairly large program where there appears to be a memory leak. If I run the program for a few days system memory is consumed to a point where the system runs short of memory and things start to go wrong as you would expect
When I kill my VB6 program the memory is released. Task manager/RamMap does not show the processes memory being utilised in an abnormal manner nor is the size of its allocated memory excessive. The build up is very slow and it is only after 7-8 days that I notice RAM usage is excessive - by its absence for any other process...
The program does a lot of GDI+, uses a lot of Win APIs and reads a lot of VB6-foreign image types (PNGs) using GDI+ and storing them in collections. It operates with quite a few timers for animation.
It won't be an easy task and so I will dig into the code and look to see what I've been doing wrong. It'll be something to do with my failure to tidy up a structure or other, probably in GDI+ but possibly something else. I won't know until I do that digging.
Can you please recommend any tools any methods you have successfully used that have helped you track down a memory leak? Your knowledge required and your help appreciated.
When I kill my VB6 program the memory is released. Task manager/RamMap does not show the processes memory being utilised in an abnormal manner nor is the size of its allocated memory excessive. The build up is very slow and it is only after 7-8 days that I notice RAM usage is excessive - by its absence for any other process...
The program does a lot of GDI+, uses a lot of Win APIs and reads a lot of VB6-foreign image types (PNGs) using GDI+ and storing them in collections. It operates with quite a few timers for animation.
It won't be an easy task and so I will dig into the code and look to see what I've been doing wrong. It'll be something to do with my failure to tidy up a structure or other, probably in GDI+ but possibly something else. I won't know until I do that digging.
Can you please recommend any tools any methods you have successfully used that have helped you track down a memory leak? Your knowledge required and your help appreciated.