terminate immedate

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

terminate immedate

Achromat
Hi all !       SORRY FOR EASY ENGLISH :-(
 
i have a little problem with my Lua,  in my Grafik Applikation.
 
Lua has should transfer any datas to my app, if the user
change the main resoulotion , lua must immedately stoping
 
i will recreate Lua and reinitiate for new conditions
but lua is crashed if i execute API function    lua_close (m_pState); 

how i can stop Lua5.1, i have execute an DirectCall function
they works intensive for 1-2 seconds as thread of my main app.

very thanks for any helps

 

 

Reply | Threaded
Open this post in threaded view
|

Re: terminate immedate

Achromat
Hi
i have found thepoint where my Lua was crashed ,by closing
i dont set value for ID greater 0
ID also = 0   no crash by lua_close :-)
lua_pushcclosure (m_pState, SetPixel, ID );
thx for read me
----- Original Message -----
Sent: Monday, March 06, 2006 4:14 AM
Subject: terminate immedate

Hi all !       SORRY FOR EASY ENGLISH :-(
 
i have a little problem with my Lua,  in my Grafik Applikation.
 
Lua has should transfer any datas to my app, if the user
change the main resoulotion , lua must immedately stoping
 
i will recreate Lua and reinitiate for new conditions
but lua is crashed if i execute API function    lua_close (m_pState); 

how i can stop Lua5.1, i have execute an DirectCall function
they works intensive for 1-2 seconds as thread of my main app.

very thanks for any helps