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.)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement