From: Daan L. <da...@cs...> - 2005-07-23 04:18:56
|
Dear Surendra, > Thanks for the help once again. I am now able to use some of the baseic functionalities, of wxC from lisp, but I am running into two issues. > > 1. In my initialization function, I am not registering for any events, and I am running just few basic bitmap related functions, they all work fine. But when the initialization function finishes, my lisp ends unceremoniously , is this due to the code? > " return wxApp::OnExit();" > > Does it causes the lisp to terminate? How can I avoid this problem? No, in principle the function would just return immediately. > > 2. When I try to just create a frame in init function, (again without registering for any events), the lisp connection dies midway. Am I doing anything wrong here? > This is not the correct behaviour :-) The most obvious issue is related to static intializer in the wxWidgets library. First of all, execute the lisp code from a compiled program and see what happens. -- Daan (explanation: the wxWidgets library initializes static variables at dll load time and doesn't reset them properly after OnExit. This means that an interpreter could only use the main loop once -- the next time it would find the static variables in an inconsistent state.) > Thanks for your time and answer. |