Hi,
I've some questions about memory management and arrays as return type for
the java binding.
For example in csImageBase, I have this:
virtual const uint8* GetAlpha ()
Who should delete the array ? is it a copy of internal structure or a
pointer to it (in which case it is deleted when csImageBase is deleted) ?
How can I know the length of the returned array ? is it ended by 0 ? How can
I know in general in the CS api ?
Also when for example a method return a csArray<something>, should I send
back a direct pointer to the elements contained in the array to the java
side or make a copy instead and return the pointer to the copy ?
If I delete a csArray<something> are all elements contained deleted ? same
questions for a something * ?
Regards,
Quentin
--
All those moments will be lost in time, like tears in rain.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]