Wrapping this Method for BMax

BlitzMax Forums/BlitzMax Programming/Wrapping this Method for BMax

Is there a flaw inherent in my way of doing it then? Because unfortunately Noel's method also gave me an unhandled memory exception.

Well, is the float ptr passed by the bmax app valid?
I assume the 3DVector contains three floats, so it should be something like this...
Local Position:Float[3]
MyWrappedGetPositionFunction(varptr Position[0])