Hi Benoit,

 

The iup.Refresh implementation in Lua is actually quite simple:

 

static int Refresh (lua_State *L)

{

  IupRefresh(iuplua_checkihandle(L,1));

  return 0;

}

 

If iuplua_checkihandle is not triggering the same problem in other
functions, I don't know where the problem is.

 

But notice that you Lua code is actually ignoring the Ihandle parameter:

 

iup.Refresh()

 

Then in a regular Lua run will trigger a Lua error.

 

Your call should be

 

iup.Refresh(self)

 

  for instance.

 

Best,

Scuri

 

 

 

From: Benoit Germain [mailto:[email protected]] 
Sent: quinta-feira, 30 de janeiro de 2014 11:52
To: IUP discussion list
Subject: [Iup-users] [IUP 3.10.1, Windows 7 64] iup.Refresh() causes a Lua
APICHECK assertion

 

Hello,

With the attached script run with a Lua runtime I built with APICHECK
enabled, I get an assertion coming from iuplua52.dll when calling
iup.Refresh(). There must be a missing lua_checkstack() somewhere :-).

Regards,



-- 
Benoit.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to