Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007636 [Squeak] VM minor always 05-21-11 22:32 05-21-11 22:32
Reporter lewis View Status public  
Assigned To lewis
Priority normal Resolution open  
Status assigned   Product Version
Summary 0007636: Trouble calling a Mac Foundation function via FFI
Description Reported on vm-dev <http://lists.squeakfoundation.org/pipermail/vm-dev/2011-May/008167.html> [^]

I'm having trouble calling a Mac Foundation function via FFI. It appears to
be the plugin for the Mac 4.2.5 VM. There was a discussion at http://forum.world.st/FFI-to-call-Mac-Carbon-functions-td3507842.html [^]

The meat of it is:
        After I put a link to the Foundation lib in the VM's Resources
folder, I compiled:

        CarbonFunctions class>>NSMakeRectWithX: xFloat y: yFloat w:
widthFloat h: hFloat
                <apicall: void* 'NSMakeRect' (float float float float) module: 'Foundation'>
                ^self externalCallFailed

        DoIt:
        CarbonFunctions
                NSMakeRectWithX: 0.0
                y: 0.0
                w: 100.0
                h: 100.0.

        Error: Unable to find function address

Other relevant info:
* I am able to call libc functions

Thanks.
Sean
Additional Information Previous discussion thread: <http://forum.world.st/FFI-to-call-Mac-Carbon-functions-td3507842.html> [^]
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
05-21-11 22:32 lewis New Issue
05-21-11 22:32 lewis Status new => assigned
05-21-11 22:32 lewis Assigned To  => lewis


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker