Re: avoiding gtk_main() ?



Peter Falk <gamsta@gmx.net> writes: 
> I tried to call "gtk_main()" in a p_thread but this makes the program
> unstable and i am not able to quit my program.
> 

Threads are going to be the only way to do this, but indeed, unless
you use them absolutely correctly they will cause instability. Read
the O'Reilly book on programming pthreads and the FAQ questions about
threads.

Your library user is basically required be aware of either the main
loop or pthreads, you can't "hide" these in the lib very well.

Havoc



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