Oops! Spoke too soon. Dr Memory crashes on 64-bits...which reminds me Antonio, did I tell you I was using the 64-bit version of IUP?
On 1/24/2017 at 4:20 PM, "Andrew Robinson" <arobinso...@cox.net> wrote: >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 <ranier_...@hotmail.com> 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 <arobinso...@cox.net> >>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 Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users