RE: [Java-gnome-developer] small problems with Java-Gnome tools
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2001-11-29 12:54:39
|
Thanks for the input. I am not aware of anybody using the bindings on Solaris. Although we have numerous Sun boxes at my work I am not able to use them for the Java-GNOME project. I have only been able to test the bindings on Linux/Intel. The messages you sent do not occur on this platform. The method that is causing the problems is jobject_cb_info_new in src/other/callback_dispatcher.c. In this method you will see a call to jobject_to_gtk (via the macro) to get the reference to the native widget, a call to gtk_signal_lookup (causing the first Gtk-CRITICAL error), and then a call to gtk_signal_query (causing the second Gtk_CRITICAL error). If I had to guess I would speculate the problem is in the call to jobject_to_gtk (at the beginning of the callback_dispatcher.c file). In this method I am getting the FieldID to the "nativepeer" Java member of GtkObject which holds the reference to the native peer. This member is of type long and I use GetLongField to retrieve that value and assign it to a jint. This could be the problem. Try changing the jint obj_pointer to a jlong. Let me know if this fixes your problem. Also, any changes that you made to Makefiles to facilitate a Solaris build would be appreciated. -Jeff > Anyway, if I get some time I'll look into this in more > detail. I just > wanted to know if > a) anyone has used Solaris 8 before and was able to run the > TestGTK code > without problems > b) anyone was looking into the above messages > c) anyone has any pointers on the above problems. > |