That is awesome! I just downloaded it and post the results of using it tomorrow.
On 1/24/2017 at 3:07 PM, Ranier VF <[email protected]> wrote: >Hi, >Try run with Dr.Memory (http://www.drmemory.org/) >c:\DrMemory\bin\drmemory -logdir c:\tmp app.exe > >Running without any modifications and reports when exit. > >Best regards, > >Ranier Vilela >________________________________________ >De: Andrew Robinson <[email protected]> >Enviado: terça-feira, 24 de janeiro de 2017 17:08 >Para: IUP discussion list. >Assunto: [Iup-users] Memory Leak? > >Hello, > >I am running an app with the following code: > >int fnSrcFile_cb(void) { > Ihandle *filedlg = IupFileDlg(); > IupSetAttribute(filedlg, "DIALOGTYPE", "OPEN"); > IupSetAttribute(filedlg, "EXTFILTER", "Text Files|*.txt|All Files|*.*|"); > IupPopup(filedlg, IUP_CENTER, IUP_CENTER); > if (IupGetInt(filedlg, "STATUS") != -1) { > char* filename = IupGetAttribute(filedlg, "VALUE"); > IupSetStrAttribute(txt1,'VALUE',filename) } > IupDestroy(filedlg); > return IUP_DEFAULT } > >With Task Manager open, the app starts out taking up 5K of memory, but as soon as I click on the control button that calls the code above, it jumps to ~15k, even if all I do is open the dialog and click on cancel. If I keep on opening and then canceling the file dialog, the memory slowly creeps up in size. Closing the app leaves a ~12k stub in memory, indicating it wasn't actually destroyed. If I do not call the file dialog, the app opens and closes, leaving nothing behind in memory. > >I am using Windows7 and the latest version of IUP (3.21). > >Thanks, > >Andrew ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
