missed to cover gtk_main() with gdk_threads_enter and gdk_threads_leave.
 
now works fine.

Tor Lillqvist <[EMAIL PROTECTED]> wrote:
(Again re-added gtk-app-devel-list to Cc. Discussions that start on a
list should stay there.)

Yogesh M writes:
> the problem is in gdk_thread_enter and gdk_thread_leave which i
> call from the thread to draw something in the drawing area,

Well, as I said, don't do that.

> 1) How does it work in windows 98 and not in windows xp,

No idea, and not really interested. Windows 98 might not be dead, but
it sure smells bad.

> 2) i am calling g_thread_init () gdk_threads_init() from main
> thread, why should it hang here,

It doesn't. A program that just calls g_thread_init(NULL) and
gdk_threads_init() in main() does not hang. Your program must be doing
something else, too. I am not clairvoyant.

> the child thread is called only when the user calls it through the
> dialog. So the program should not hang at the beginning instead it
> should have hang when user starts the child thread.

Attach a *complete* but *minimal* sample program to a bug report.

--tml


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to