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>