Storing C++ data in an instance field using CNI?
Paul Gear
paul@gear.dyndns.org
Thu May 27 09:28:00 GMT 2004
Bryce McKinlay wrote:
> ...
> I'm thinking of adding something like "RawDataMarked" which would be
> like RawData but would be checked by the GC. This way you could allocate
> a native struct using JvAllocBytes(), and it would be automatically
> freed when the Java object becomes unreachable. No need for a finalizer.
It's like you're reading my mind, man! <g>
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?
--
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/b0bdf27d/attachment.sig>
More information about the Java
mailing list