Cleanup on SketchUp close problem
-
Hi all,
I am calling function from ruby that creates modal fltk window from c++ plugin dll (which is not true modal in Sketchup),
and I am making SketchUp window its parent.
Window is shown as long as user close it by close/apply button (or esc key).When SketchUp closes, I would like to clearly close that window.
I added onQuit() function from Sketchup::AppObserver that calls code to close the window.
It works, but the problem is after close it returns value to the original ruby function call,
and it seems not longer exist at this moment.it locks on ntdll.dll!KiFastSystemCallRet()
And Sketchup does not close.Does any of you had similar problem?
Maybe it is possible to create true modal window with Sketchup as a parent window?If I use exit(0) at the end it closes, but it is not very clean solution...
-
Yea,
onQuit()
has problems under SketchUp. Under OSX it isn't called at all. If you search the forum for onQuit you'll find a couple of threads on the topic. (Sorry, don't have the links at hand.)
Advertisement