globalizing java object references
Oskar Liljeblad
osk@hem.passagen.se
Sat Apr 1 00:00:00 GMT 2000
>From the CNI docs:
"If you need to save a pointer to a Java object inside some non-Java data
structure, you first need to "pin" or "globalize" the pointer; there is
no CNI function to do this yet."
Is it possible to circumvent this somehow? Or are there plans to
implement this in a near future?
I'm (still) experimenting with interfacing Gtk in java using CNI.
It may be reasonable to store a reference in each GtkObject to the
corresponding Java object (if any). (Gtk has convenient functions for
doing this, gtk_object_{get,set,remove}_data.) But this would not be
possible right now, because the way Java objects are memory managed?
Oskar Liljeblad (osk@hem.passagen.se)
More information about the Java
mailing list