Hi,
Well, we do not currently expose the pointer or object API to the C-code developer. This is primarily because it is tricky to get correct, and is difficult to explain. Also, it is kind of a pain to return pointers to users. They need to understand how pointers work, and how to not leak them. The garbage collection (added in IDL 8.0) helps with this, but you can still end up with leaks if you assign pointers to common blocks, etc. So we try to avoid returning pointers wherever possible (except for a few special cases).
So, I would recommend that you return your data as a simple array of numbers. It is easier for you to code, and easier for the end users.
Hope this helps!
Cheers,
Chris
ExelisVIS
|