[MacOS] How to copy NSPoint struct into a type

BlitzMax Forums/BlitzMax Programming/[MacOS] How to copy NSPoint struct into a type

d-bug(Posted 2014) [#1]
Hello folks,

how do I have to copy a NSPoint struct into a BlitzMax type? The following sample should illustrate what I've done so far.



While NSUserName passed the test and prints my username to the output panel, NSPointFromString crashes on MemCopy with a EXC_BAD_ACCESS and KERN_INVALID_ADDRESS error.

I'm not very experienced with C interfaces, so I'm stuck at this point.