by wikii » Tue May 22, 2012 5:28 pm
I want to unload a win32api.so,then load an other version of win32api.so. How can do it.
Thanks!
wikii
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Dan Rathbun » Tue May 22, 2012 7:28 pm
You want to do this on just YOUR machine, or on other people's machines who have your plugin ?
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by Dan Rathbun » Tue May 22, 2012 8:03 pm
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.)
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by wikii » Thu May 24, 2012 12:40 pm
Dan Rathbun wrote:You want to do this on just YOUR machine, or on other people's machines who have your plugin ?
Just on my own machine.
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by wikii » Thu May 24, 2012 12:50 pm
Dan Rathbun wrote: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.
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by TIG » Thu May 24, 2012 4:11 pm
DO you have the .so version that is appropriate to your Sketchup version ? Dan has them set out here viewtopic.php?p=380121#p380121
TIG
-

TIG
- Global Moderator
-
- Posts: 14310
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Dan Rathbun » Thu May 24, 2012 9:13 pm
Sounds like your plugin wants to use digest.so
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by wikii » Fri May 25, 2012 6:22 am
Dan Rathbun wrote:Sounds like your plugin wants to use digest.so
Yes. Is there a way to unload a loaded *.so file?
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Dan Rathbun » Fri May 25, 2012 7:28 am
wikii wrote: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_VERSIONand RUBY_PATCHLEVELWhat 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.)
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by thomthom » Fri May 25, 2012 9:06 am
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.
-

thomthom
- Global Moderator
-
- Posts: 17915
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by wikii » Sat May 26, 2012 4:17 pm
Dan Rathbun wrote:wikii wrote: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_VERSIONand RUBY_PATCHLEVELWhat 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!
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Dan Rathbun » Sat May 26, 2012 4:34 pm
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 ?
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by wikii » Sat May 26, 2012 11:29 pm
I found that one plugin uses digest.so from ruby 1.8 , another uses digest.so from ruby 1.86.
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Dan Rathbun » Sun May 27, 2012 2:49 pm
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. viewtopic.php?t=29412#p257058Remove any standard Ruby .so files from plugin dir.
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by Dan Rathbun » Thu May 31, 2012 4:59 am
How are you doing on the so file version situation ??
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by wikii » Thu May 31, 2012 12:02 pm
Dan Rathbun wrote: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.
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Dan Rathbun » Thu May 31, 2012 9:31 pm
wikii wrote:Dan Rathbun wrote: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 ...
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by wikii » Fri Jun 01, 2012 5:22 am
Dan Rathbun wrote:wikii wrote:Dan Rathbun wrote: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.
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Ad Machine » 5 minutes ago
Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Developers' Forum
|