• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

How to unload a .so file?

Scheduled Pinned Locked Moved Developers' Forum
18 Posts 4 Posters 1.1k 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.
  • W Offline
    wikii
    last edited by 22 May 2012, 16:28

    I want to unload a win32api.so ,then load an other version of win32api.so .
    How can do it.

    Thanks!

    wikii

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 22 May 2012, 18:28

      You want to do this on just YOUR machine, or on other people's machines who have your plugin ?

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dan Rathbun
        last edited by 22 May 2012, 19:03

        Please explain WHY you think you need to do this ??

        How will you determine what VERSION of Win32API has been loaded ?? (There is no version information within it's C source or it's resulting Ruby class.)

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • W Offline
          wikii
          last edited by 24 May 2012, 11:40

          @dan rathbun said:

          You want to do this on just YOUR machine, or on other people's machines who have your plugin ?

          Just on my own machine.

          1 Reply Last reply Reply Quote 0
          • W Offline
            wikii
            last edited by 24 May 2012, 11:50

            @dan rathbun said:

            Please explain WHY you think you need to do this ??

            How will you determine what VERSION of Win32API has been loaded ?? (There is no version information within it's C source or it's resulting Ruby class.)

            I run a plugin,return "Error: #<RuntimeError: Incompatible digest API version>".
            I think maybe a deffirent version of digest API has been loaded.So I want to unload it.

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 24 May 2012, 15:11

              DO you have the .so version that is appropriate to your Sketchup version ?
              Dan has them set out here http://forums.sketchucation.com/viewtopic.php?p=380121#p380121

              TIG

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dan Rathbun
                last edited by 24 May 2012, 20:13

                Sounds like your plugin wants to use digest.so

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wikii
                  last edited by 25 May 2012, 05:22

                  @dan rathbun said:

                  Sounds like your plugin wants to use digest.so

                  Yes.
                  Is there a way to unload a loaded *.so file?

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dan Rathbun
                    last edited by 25 May 2012, 06:28

                    @wikii said:

                    Is there a way to unload a loaded *.so file?

                    Not really as it's not written in Ruby. It's written in C.

                    The solution is to control the Ruby enviroment you are running, so:

                    Where and what Ruby version is your so files getting loaded from ??

                    What ruby version are you running ??
                    In the Ruby Console type:
                    RUBY_VERSION
                    and
                    RUBY_PATCHLEVEL

                    What platform are you running on?
                    What SketchUp edition, version and MR are you using ??
                    (Your forum user info is not displaying this info. Please go to the forum User Control Panel, and enter this info. It will help us help you better, and the forum's cleanup routine will not flag you as needing to be deleted.)

                    I'm not here much anymore.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      thomthom
                      last edited by 25 May 2012, 08:06

                      You could do what I did - download the Win32 API from the Win32 Utils project: http://rubyforge.org/projects/win32utils (download the win32-api package), modify it into your own namespace and build your own version.

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

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        wikii
                        last edited by 26 May 2012, 15:17

                        @dan rathbun said:

                        @wikii said:

                        Is there a way to unload a loaded *.so file?

                        Not really as it's not written in Ruby. It's written in C.

                        The solution is to control the Ruby enviroment you are running, so:

                        Where and what Ruby version is your so files getting loaded from ??

                        What ruby version are you running ??
                        In the Ruby Console type:
                        RUBY_VERSION
                        and
                        RUBY_PATCHLEVEL

                        What platform are you running on?
                        What SketchUp edition, version and MR are you using ??
                        (Your forum user info is not displaying this info. Please go to the forum User Control Panel, and enter this info. It will help us help you better, and the forum's cleanup routine will not flag you as needing to be deleted.)

                        Thank you!

                        RUBY_VERSION
                        1.8.6
                        RUBY_PATCHLEVEL
                        287

                        My platform is win7 64bit.Sketchup version is 8.0.14364.
                        And I modified my info in control panel.

                        I need more help about unload a .so file.
                        Thank you!

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Dan Rathbun
                          last edited by 26 May 2012, 15:34

                          The solution is to control the Ruby enviroment you are running, so:

                          Where did you get the .so files that you are trying to load ??

                          What Ruby version / patchlevel did they come from ?

                          I'm not here much anymore.

                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            wikii
                            last edited by 26 May 2012, 22:29

                            I found that one plugin uses digest.so from ruby 1.8 , another uses digest.so from ruby 1.86.

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              Dan Rathbun
                              last edited by 27 May 2012, 13:49

                              Get the full Ruby & install it
                              and use the !loadpaths script (or something similar,) to be sure that files from the system Ruby libs are loading.
                              http://forums.sketchucation.com/viewtopic.php?t=29412#p257058

                              Remove any standard Ruby .so files from plugin dir.

                              I'm not here much anymore.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Dan Rathbun
                                last edited by 31 May 2012, 03:59

                                How are you doing on the so file version situation ??

                                I'm not here much anymore.

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wikii
                                  last edited by 31 May 2012, 11:02

                                  @dan rathbun said:

                                  How are you doing on the so file version situation ??

                                  I ask the author of the plugin.He told me that plugin use degist.so from 1.8.

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    Dan Rathbun
                                    last edited by 31 May 2012, 20:31

                                    @wikii said:

                                    @dan rathbun said:

                                    How are you doing on the so file version situation ??

                                    I ask the author of the plugin.He told me that plugin use degist.so from 1.8.

                                    Well they need to update the plugin, as SketchUp 8 on Win32 uses Ruby v1.8.6-p287 ...

                                    I'm not here much anymore.

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      wikii
                                      last edited by 1 Jun 2012, 04:22

                                      @dan rathbun said:

                                      @wikii said:

                                      @dan rathbun said:

                                      How are you doing on the so file version situation ??

                                      I ask the author of the plugin.He told me that plugin use degist.so from 1.8.

                                      Well they need to update the plugin, as SketchUp 8 on Win32 uses Ruby v1.8.6-p287 ...

                                      Thank you!
                                      He told me he will.

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

                                      Advertisement