On Wed, 2003-03-19 at 13:22, Mark Howard wrote:
> java.lang.NullPointerException
> at org.gnu.gtk.Gtk.gtk_main(Gtk.java:native)
> at org.gnu.gtk.Gtk.main(Gtk.java:54)
> at com.tildemh.debbuggtk.BugWatcher.main(BugWatcher.java:454)
>
> Any ideas why this is happening?
No, but I'll look into it. I had almost identical code in my VPN
client, but removed it when hitting the same bug. Still, that should
work.
> Also, I think this method would be added to the main code - where should
> it go?
I asked that question last month without any responses. My suggestion
was to create a GLib.java which held untyped GLib routines, much as
Gtk.java and Gnome.java do. If no one has objections, that's where I'll
put it.
BTW, I don't think Timer is the right way to implement invokeLater
(although I used the same approach). My limited understanding of GLib
suggests that it's worth the extra work to support creating a new event
source (perhaps using g_main_context_add_poll()). My suspicion is that
we'll be needing to define other event types over time.
Tom
|