-9939 Error

View: New views
3 Messages — Rating Filter:   Alert me  

-9939 Error

by Antoine Mischler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have developed a plugin with Plugin SDK 2004.5.  This plugin works  
fine on my IntelMac, but when I try to use it on another IntelMac  
using exactly the same project I get from 4D the error -9939. (In the  
console we can see that dyld() failed with error code 2).
The plugin is in the right directory and the permission rights are  
set correctly.
otool -L JVM\ Plugin.bundle/Contents/MacOS/JVM\ Plugin returns:
         /System/Library/Frameworks/Carbon.framework/Versions/A/
Carbon (compatibility version 2.0.0, current version 128.0.0)
         /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit  
(compatibility version 1.0.0, current version 275.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
current version 88.3.7)
Both sdk are available on the platform, so it doesn't seem to be a  
dependency problem.

Does anybody have any idea of what else could lead to this error?

Regards,
Antoine Mischler
**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/     
   

4th Dimension 2004 - Design, Develop and Deliver Powerful Database
Applications http://www.4D.com/2004 

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: -9939 Error

by Thibaud Arguillere :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

At 15:45 +0200 27/06/07, Antoine Mischler wrote:

>Hi all,
>
>I have developed a plugin with Plugin SDK 2004.5.  This plugin works
>fine on my IntelMac, but when I try to use it on another IntelMac
>using exactly the same project I get from 4D the error -9939. (In
>the console we can see that dyld() failed with error code 2).
>The plugin is in the right directory and the permission rights are
>set correctly.
>otool -L JVM\ Plugin.bundle/Contents/MacOS/JVM\ Plugin returns:
>
>/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
>(compatibility version 2.0.0, current version 128.0.0)
>         /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
>(compatibility version 1.0.0, current version 275.0.0)
>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
>current version 88.3.7)
>Both sdk are available on the platform, so it doesn't seem to be a
>dependency problem.
>
>Does anybody have any idea of what else could lead to this error?

Looks like the resource fork of the plugin can't be loaded. Check the
.bundle has (it seems that the name of the plugin is JVM, I use this)
the "Resources" foelr that contains its JVM.rsrc file, which are the
resources of the plugin.

Thibaud
**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/     
   

4th Dimension 2004 - Design, Develop and Deliver Powerful Database
Applications http://www.4D.com/2004 

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: -9939 Error

by Antoine Mischler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Am 27.06.2007 um 18:08 schrieb Thibaud Arguillere:


Looks like the resource fork of the plugin can't be loaded. Check the .bundle has (it seems that the name of the plugin is JVM, I use this) the "Resources" foelr that contains its JVM.rsrc file, which are the resources of the plugin.

Thibaud


Thanks for your answer. This "JVM Plugin.rsrc" is in the Resources folder in the bundle.
Here is what I see when I open this file with ResKnife:

Name Type ID Size
JVM Plugin THM# 16000 12
JVM Plugin 4BNX 16000 10
JVM Plugin STR# 16000 198
JVM Plugin FON# 16000 10
Resource Fork 0

Is there something wrong with this resource file? I have changed the default name of the 4D Plugin to "JVM Plugin" in the xcode project, under
Edit Active Target '4D Plugin'->Build->Product Name (JVM Plugin)
Edit Active Target '4D Plugin'->Properties->Executable (JVM Plugin)
Edit Active Target '4D Plugin'->Properties->Identifier (com.4D.JVMPlugin)
and in the Info.plist file:
<key>CFBundleExecutable</key>
<string>JVM Plugin</string>
<key>CFBundleIdentifier</key>
<string>com.4D.JVMPlugin</string>
May I have forgoten to update this name somewhere else?

Antoine
LightInTheBox - Buy quality products at wholesale price!