Hello,
I've got a memory leak issue, where launching a program will bleed between 600KB and 1MB of memory as shown in the windows task manager. We call the program in a thread and destroy all bitmaps/fonts/activex controls when we're exiting the program. When I look at the debugger's -u output, I can see that the Program memory is staying constant, the file memory is constant, but the Windows and Overhead memory buckets are constantly increasing each time I call the program. Is there any way for me to see what is in these buckets or to tell why they are increasing and not falling back when I exit the program? There are 9 ActiveX controls in total on the window, and some bitmap buttons, I'm assuming destroying them when exiting should release their memory. As this program is run in a thread that we're not waiting for, there is not a cancel that's run after the call, but we do run a Cancel All prior to calling the program, which should free up any memory used by inactive programs. Any assistance troubleshooting this would be of great help.
Thanks
Hi,
I have a similar trouble. I've been inspecting the generated file with '-m 3' command line configuration, but I don't know what it means 'hotkey program name'
Here I leave the final part or the file:
final memory dump:
0058DEC0, 24: config/config.c:151, `Configuration variable comment'
005FBBC0, 20: runtime/startup.c:4321, `Current thread frame list'
0060DA08, 582: ui/newwin.c:4466, `key maps'
006735E0, 20: ui/win/win3ctl.c:5802, `Clip list'
0067E5E8, 12: runtime/stdlib.c:2295, `hotkey stack node'
033CC9A8, 12: runtime/stdlib.c:2295, `hotkey stack node'
033CCB68, 16: runtime/variant.c:186, `OLE scratch buffer'
03423F58, 12: runtime/stdlib.c:2295, `hotkey stack node'
0342C338, 582: ui/newwin.c:4466, `key maps'
034364C8, 7: runtime/stdlib.c:2304, `hotkey program name'
03436648, 7: runtime/stdlib.c:2304, `hotkey program name'
03436678, 7: runtime/stdlib.c:2304, `hotkey program name'
034366A8, 7: runtime/stdlib.c:2304, `hotkey program name'
034366D8, 7: runtime/stdlib.c:2304, `hotkey program name'
03436708, 7: runtime/stdlib.c:2304, `hotkey program name'
03436768, 7: runtime/stdlib.c:2304, `hotkey program name'
034367C8, 7: runtime/stdlib.c:2304, `hotkey program name'
034367F8, 7: runtime/stdlib.c:2304, `hotkey program name'
03436828, 7: runtime/stdlib.c:2304, `hotkey program name'
03436858, 7: runtime/stdlib.c:2304, `hotkey program name'
03436888, 7: runtime/stdlib.c:2304, `hotkey program name'
034368B8, 7: runtime/stdlib.c:2304, `hotkey program name'
034368E8, 7: runtime/stdlib.c:2304, `hotkey program name'
03436918, 7: runtime/stdlib.c:2304, `hotkey program name'
034369D8, 7: runtime/stdlib.c:2304, `hotkey program name'
03436A08, 7: runtime/stdlib.c:2304, `hotkey program name'
03452628, 7: runtime/stdlib.c:2304, `hotkey program name'
03452748, 7: runtime/stdlib.c:2304, `hotkey program name'
03452808, 7: runtime/stdlib.c:2304, `hotkey program name'
03452958, 7: runtime/stdlib.c:2304, `hotkey program name'
034529B8, 7: runtime/stdlib.c:2304, `hotkey program name'
034529E8, 7: runtime/stdlib.c:2304, `hotkey program name'
03452AD8, 7: runtime/stdlib.c:2304, `hotkey program name'
03452B08, 7: runtime/stdlib.c:2304, `hotkey program name'
03454308, 12: runtime/stdlib.c:2295, `hotkey stack node'
03454378, 12: runtime/stdlib.c:2295, `hotkey stack node'
03487A70, 64: ui/control.c:2937, `event list'
0348F860, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348F898, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348F908, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348F978, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348F9B0, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FA20, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FA58, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FB00, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FB38, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FC18, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FC50, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FC88, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FCF8, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FDD8, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FE10, 12: runtime/stdlib.c:2295, `hotkey stack node'
0348FE48, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D5C0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D5F8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D630, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D668, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D6A0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D6D8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D710, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D748, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D7B8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D7F0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D828, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D898, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D8D0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D940, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D978, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D9B0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7D9E8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DA20, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DA58, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DAC8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DB00, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DBA8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DBE0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DC18, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DC50, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DC88, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DCC0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DCF8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DD68, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DDD8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DE10, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DE48, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DE80, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DEB8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DEF0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DF28, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DF60, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DF98, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7DFD0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E008, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E040, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E078, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E0B0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E0E8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E120, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E158, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E1C8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E200, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E238, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E270, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E2A8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E2E0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E318, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E388, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E3C0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E3F8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E430, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E468, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E4A0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E4D8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E510, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A7E548, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A805A8, 582: ui/newwin.c:4466, `key maps'
05A81160, 7: runtime/stdlib.c:2304, `hotkey program name'
05A811F0, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81220, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81250, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81280, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81400, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81430, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81BD0, 582: ui/newwin.c:4466, `key maps'
05A82240, 582: ui/newwin.c:4466, `key maps'
05A824B0, 582: ui/newwin.c:4466, `key maps'
05A82E50, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82E88, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82EC0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82EF8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82F30, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82F68, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82FA0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82FD8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83010, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83048, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83080, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A830B8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A830F0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83128, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A831D0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83208, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83240, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83278, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A832B0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83320, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83358, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83390, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A833C8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83400, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83438, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83470, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A834A8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A834E0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83518, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83F30, 582: ui/newwin.c:4466, `key maps'
usable memory allocated: 5786 bytes
memory description overhead: 3744 bytes
Any assistance would be of great help
Thanks!
Hello,
I've got a memory leak issue, where launching a program will bleed between 600KB and 1MB of memory as shown in the windows task manager. We call the program in a thread and destroy all bitmaps/fonts/activex controls when we're exiting the program. When I look at the debugger's -u output, I can see that the Program memory is staying constant, the file memory is constant, but the Windows and Overhead memory buckets are constantly increasing each time I call the program. Is there any way for me to see what is in these buckets or to tell why they are increasing and not falling back when I exit the program? There are 9 ActiveX controls in total on the window, and some bitmap buttons, I'm assuming destroying them when exiting should release their memory. As this program is run in a thread that we're not waiting for, there is not a cancel that's run after the call, but we do run a Cancel All prior to calling the program, which should free up any memory used by inactive programs. Any assistance troubleshooting this would be of great help.
Thanks
Hi,
I'm in a similar case, but I'm not using Active-x.
I leave here a little part of the end of the file:
05A805A8, 582: ui/newwin.c:4466, `key maps'
05A81160, 7: runtime/stdlib.c:2304, `hotkey program name'
05A811F0, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81220, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81250, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81280, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81400, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81430, 7: runtime/stdlib.c:2304, `hotkey program name'
05A81BD0, 582: ui/newwin.c:4466, `key maps'
05A82240, 582: ui/newwin.c:4466, `key maps'
05A824B0, 582: ui/newwin.c:4466, `key maps'
05A82E50, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82E88, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82EC0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82EF8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82F30, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82F68, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82FA0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A82FD8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83010, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83048, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83080, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A830B8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A830F0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83128, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A831D0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83208, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83240, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83278, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A832B0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83320, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83358, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83390, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A833C8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83400, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83438, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83470, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A834A8, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A834E0, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83518, 12: runtime/stdlib.c:2295, `hotkey stack node'
05A83F30, 582: ui/newwin.c:4466, `key maps'
usable memory allocated: 5786 bytes
memory description overhead: 3744 bytes
Any assistance would be of great help
Thanks