Re: /IUP/ Help needed with examples

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi

these are the examples from the IUP side: They work

http://webserver2.tecgraf.puc-rio.br/iup/examples/Lua/message.lua

-- IupMessage Example in IupLua  
-- Shows a dialog with the message: “Click the button”.  
 
require( "iuplua" ) 
 
iup.Message ("IupMessage", "Press the button") 

http://webserver2.tecgraf.puc-rio.br/iup/examples/C/message.c

/* IupMessage Example */ 
 
#include <stdlib.h> 
#include <stdio.h> 
 
/* IUP libraries include */ 
#include <iup.h> 
 
/* Main program */ 
int main(int argc, char **argv) 
{ 
  /* Initializes IUP */ 
  IupOpen(&argc, &argv); 
   
  /* Executes IupMessage */ 
  IupMessage("IupMessage Example", "Press the button"); 
 
  /* Finishes IUP */ 
  IupClose (); 
 
  /* Program finished successfully */ 
  return EXIT_SUCCESS; 
 
} 

Looking at http://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessage.html

IupMessage seemd to use PARENTDIALOG (even if it is not needed).

Maybe, (i say only maybe) if IupAlarm sets PARENTDIALOG and dies than IupMessage may use an invalid handle as parent and may die.

Just an idea.

Andreas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu