Storing C++ data in an instance field using CNI?

Paul Gear paul@gear.dyndns.org
Thu May 27 09:51:00 GMT 2004


Bryce McKinlay wrote:
> ...
>> That's exactly what i'm looking for.  I want my native structure to be
>> checked and freed by the GC.  I think i might just declare it as an
>> Object for now - should that do the trick?
> 
> Yup, it will work. But, be warned that using Object to store native
> pointers is not offically supported and could break in the future.

Is there a better way to get some memory from the GC that will be
collected when my object disappears?

-- 
Paul
http://paulgear.webhop.net
-- 
Think context!  Using accepted quoting conventions makes
your email easier to understand.  Learn how at
<http://www.netmeister.org/news/learn2quote.html>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040527/a0a44a73/attachment.sig>


More information about the Java mailing list