sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Cleanup on SketchUp close problem

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 183 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      Brighter3D
      last edited by

      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...

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        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.)

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement