Re: Weird problems: C library programs crashing in combination with GTK UI

2008-01-26 Thread Chris Vine
On Wed, 2008-01-23 at 10:18 +1100, Michael Lamothe wrote: Hi, Alternatively, you can use the new gdk_threads_add_timeout() available in GTK 2.12. It's a GDK thread safe drop-in-replacement for g_timeout_add(). g_timeout_add() is thread safe provided that, if any GDK/GTK+ functions are

Weird problems: C library programs crashing in combination with GTK UI

2008-01-22 Thread vijayasarathy
Hi all, I am giving a UI for a library which has been developed in core ANSI C. The library calls a function close to 1000 times and is highly voluminous in terms of space and time. I want to call this function 1000 times from my UI. I have made a dll file out of the C library, and I am using

Re: Weird problems: C library programs crashing in combination with GTK UI

2008-01-22 Thread Tristan Van Berkom
2008/1/22 [EMAIL PROTECTED]: [...] Pseudo code for my call back function [for some button which will initiate action] is as follows: /***CALL BACK FUNCTION CODE SNIPPET ***/ g_timeout_add(1500,progress_timeout,progressbarwidget); f1();//THE BIG FUNCTION

Re: Weird problems: C library programs crashing in combination with GTK UI

2008-01-22 Thread Michael Lamothe
Hi, Alternatively, you can use the new gdk_threads_add_timeout() available in GTK 2.12. It's a GDK thread safe drop-in-replacement for g_timeout_add(). Thanks, Michael On 23/01/2008, Tristan Van Berkom [EMAIL PROTECTED] wrote: 2008/1/22 [EMAIL PROTECTED]: [...] Pseudo code for my call