Re: gtk_init - freezing/crashing

On Sun, 4 Mar 2001, Sean Middleditch wrote:

> OK, I have two issues with gtk_init () that I can't seem to figure out...
> Xine is threaded quite a bit.  The GUI is running in the main thread, while
> video/audio/etc. threads are spawned off - they do not interact with the
> GUI (yet, though I plan on doing that in a thread safe way).
> What could be causing this?  How can I use gtk_init() without access to
> argc/argv, or do I need to make Xine pass these to the GUI code?
> BTW, I'm not sure if I'm on the gtk-devel-list (I don't think I am), so
> pleasae respond to my e-mail address (sean middleditch iname com).

Have you tried passing in a minimal argv array?  Something like this:
  char *argv[] = { "xine", NULL };
  int argc = 1;

  gtk_init(&argc, &argv);

Among other things, gtk uses the first element of argv as the program name
for various purposes.


Email: james daa com au

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]