realbasic-plugins
[Top] [All Lists]

Re: Frameworks = MachO

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Frameworks = MachO
From: Tom Benson <tombenson at mac dot com>
Date: Tue, 14 Mar 2006 09:35:06 +1100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <38A9994B-5897-42F4-A4C1-0508D12EE7B1 at realsoftware dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313132649 dot 036a1a98 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313125457 dot 03b29678 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313125457 dot 03b29678 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313132649 dot 036a1a98 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313160039 dot 034c34a8 at mail dot chickensys dot com>
I think you need to declare to the actual dylib, not just to the bundle, when yu're dealing with Mach0

Declare Function MyTestCall Lib "/Library/Application Support/ ExtCompany/thislib.bundle/MacOS/thislib.dylib" (myparam As Integer) As Integer

Try it. Failing that, look in your console for a better idea about what's causing the crash.

Tom


On 14/03/2006, at 9:03 AM, Garth Hjelte wrote:

Additional info:

I put in this code into my app:

Declare Function MyTestCall Lib "/Library/Application Support/ ExtCompany/thislib.bundle" (myparam As Integer) As Integer

In "thislib.bundle" there is this code:

#pragma export on
extern "C" {
         long MyTestCall(long myparam)
         {
                 return myparam + myparam;
         }
}
#pragma export off

thislib.bundle is a Mach-O Shared Bundle, according to CW.

I compile my app in RB to Mach-O, and try to start the app. It just hangs on the launch.

Garth Hjelte
Sampler User
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

All questions and answers unless otherwise stated are in Relation to Mac OS X 10.4 and later.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>