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

Reply via email to