sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Win32ole issues

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 4 Posters 811 Views 4 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      @unknownuser said:

      disable BugSplat and try to find the reason of crash (usually some COM things not properly initialized/finalized )
      How do I disable Bugsplat ?

      The entire block of code is all as I posted [no more needed!], for a 64bit initial almost instant Bugsplat as Excel tries to Quit, or when adjusted with the additional ole_free..=nil..GC.start etc it Quits OK, but eventually Bugsplats when Sketchup is closed... so where'd a COM issue come from ?
      I'm afraid that Win32ole is a bit beyond my normal level of programming - it was relatively easy to get the 32bit version working as needed as a simple extension of Ruby - bloody 64bit Windows !

      To complicate matters I don't have regular access access to a 64bit Win7 PC to test ideas on either πŸ˜’

      TIG

      1 Reply Last reply Reply Quote 0
      • daikuD Offline
        daiku
        last edited by

        Hi Tig.

        I tried this on my machine (Vista64), and it does not bug splat. I had to add require('win32ole') to get it to work.
        One thing I noticed is that I get a popup from Excel asking if I want to save the changes I made. If I let that sit unanswered for a while, I get a "server busy" popup from Sketchup, saying "this action cannot be completed because the other program is busy".... Maybe you want to try xls.saveas("whatever.xlsx")

        Clark Bremer
        http://www.northernlightstimberframing.com

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          daiku

          Thank's for the info.
          Sorry... but the code is only snippets; I missed out the line
          xls.SaveAs(xlsp) that's needed if you reset a value...
          I've edited the earlier code to include that now !
          If you retest it with the full code is it OK ?
          Does it break with the 32bit version of the code, that ends at excel.Quit() ?
          Your lack of Bugsplats is puzzling...
          Perhaps my client has something else running that doesn't like these interactions ???
          Are you on v8M2 64bit Win7 ?

          TIG

          1 Reply Last reply Reply Quote 0
          • tbdT Offline
            tbd
            last edited by

            @unknownuser said:

            How do I disable Bugsplat ?

            iirc you need a debug=1 registry and then http://www.ishouldbeallowedtothink.com/suwiki/index.php?title=Debug

            didnt checked if it still works in the latest SU

            sometimes sketchup.exe still exists in the background even if there is no UI. check with a task manager.

            SketchUp Ruby Consultant | Podium 1.x developer
            http://plugins.ro

            1 Reply Last reply Reply Quote 0
            • daikuD Offline
              daiku
              last edited by

              Works just the same. I now get the 'file already exists/are you sure?' dialog from excel, and if I delay, it will still cause the 'server busy' popup in sketchup. But no Bugsplat. You may want to try xls.close(1), which will always save and not ask. That will avoid the 'server busy' popup.

              SU v8M2, Win VistaSP2 64.

              Clark Bremer
              http://www.northernlightstimberframing.com

              1 Reply Last reply Reply Quote 0
              • daikuD Offline
                daiku
                last edited by

                And no, I did not use any of the 64-bit code you put in the second code window.

                Clark Bremer
                http://www.northernlightstimberframing.com

                1 Reply Last reply Reply Quote 0
                • daikuD Offline
                  daiku
                  last edited by

                  My Notebook is running Win7-64. It runs exactly the same there. No Bugsplat.

                  Clark Bremer
                  http://www.northernlightstimberframing.com

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    Thanks, again!
                    I should have used 'Save' anyway, as I wanted to update the same file !
                    Doh!
                    Strange that you can't break it whatever you do ? πŸ˜•

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • Dan RathbunD Offline
                      Dan Rathbun
                      last edited by

                      In the registry there is a "BugSplat" subkey under each versions app key. (Not to be confused with the main "BugSplat" subkey under "Software", that keeps statistics.)

                      My v7 settings has an DWORD attribute "Enabled" that has the value 0.

                      There may be a commandline switch to run SU without BugSplat. Perhaps Jim knows?

                      I'm not here much anymore.

                      1 Reply Last reply Reply Quote 0
                      • daikuD Offline
                        daiku
                        last edited by

                        No Bugsplats at all.

                        Clark Bremer
                        http://www.northernlightstimberframing.com

                        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