sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Using wxWidgets in extensions

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 761 Views 3 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.
    • F Offline
      fluid
      last edited by

      We are using wxWidgets inside our extension called AmbientOcclusion (on Mac OS X). Every time we load our extension, Thea Render becomes unstable and crashes. It seems that Thea Render uses wxWidgets as well, and that the two extensions are conflicting because of it. Also, doesn't matter that we are linking statically or dynamically to wxWidgets, the problem persists.

      Has anybody experienced a similar issue?

      1 Reply Last reply Reply Quote 0
      • jiminy-billy-bobJ Offline
        jiminy-billy-bob
        last edited by

        Yes, there is the same issue between Vray and Thea. I think they found a way to fix it.
        You should contact Tomasz.

        25% off Skatter for SketchUcation Premium Members

        1 Reply Last reply Reply Quote 0
        • F Offline
          fluid
          last edited by

          Great thanks!

          1 Reply Last reply Reply Quote 0
          • T Offline
            tomasz
            last edited by

            The most important thing is to hide all symbols when compiling wxWidgets on Mac.
            When fluid has done it, the crash is gone.
            We have same issue as with V-ray now. Thea dialogues will not close and neither refresh.

            It is most likely caused by using IMPLEMENT_APP_NO_MAIN(MyApp) macro in AO. This allows just a single instance of wxApp. Our solution is to create our own instance of wxApp and to use wxApp::SetIntance( instance ); instead. When SU closes I do a clean-up and call wxUninitialize();

            As far as I know Thea doesn't affect any plugin, so the solution works correctly.

            Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

            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