fixed the problem with the adresses when allocating foreign memory for the splineimageview for languages which do not have a foreign pointer concept (like e.g. exelvis IDL). Fixed the address type to UInt64 and used exactly this type in IDL as the returning/call value. Works fine