Re: Invoking[Fork and exec] a new script from main GUI, freezes parent UI application....



On Thu, 2007-04-19 at 13:51 +0530, Ashwin Ramachandran wrote:
Hi All,
I have an application, in which there is a menu item to display a log
window. This log[textview] window shows all the log debugs collected
so far from the application. All the log debugs are written to a file
by the main application and this text window displays the contents of
that log file. 

Currently, whenever the menu item is clicked, I am forking and execing
a script to display this text window.
However, whenever the menu item is clicked, I observe that my main UI
freezes.

you might want to look at the mailing list archives and at the FAQ,
specifically at these two entries:

  http://live.gnome.org/GTK2-Perl/FrequentlyAskedQuestions#main-loop
  http://live.gnome.org/GTK2-Perl/FrequentlyAskedQuestions#io-poll

in short: you are writing a GUI application like a console application;
the short answer is: don't.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




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