Hi Charles ,
It allocates 3 static arrays (600*600 int32 each) -- it works everywhere (but not in Clozure CL) ... i also tried (FB) something as
(dynamic)
dim shared as integer r() , ....
public function allocred(n as integer) as any ptr export
redim as integer r(n)
return @r(0)
end function
no success (but I have the feeling I'm doing something unallowed here ;..
however , problem is fixed now by setting up Japi inside the DLL -- but again, in FB and I do think it uses a static lib japi.a ? that is enclosed into the dll ... (attached) -- can this be done with Oxygen
(would be great -- ).
Also attached, why I need this "foreign memory" -- one uses an image as an object , the other sets up an array in memory -- calculations are identical ... the difference in speed is frappant
As I can not get real addresses in Lisp ( I do not have the courage to start complex things like working with Mac Pointers (if they should work in a non *nix system ) this is my only way .. and a fast way (same for heavy calculations .. in Common Lisp every number is a complex number .. unless a smart compiler (maybe Steel Bank CL ?) it's also a loss of speed etc ...
best Rob (thanks for ur help)
.