Re: system calls was Progress Bar



Marco Quezada wrote:

I'm not completely sure of what your system() arguments are. I assume you are
doing a directory listing? (ls)

Maybe all you need to do is call

while (gtk_events_pending())
   {
            gtk_main_iteration();
   }

To refresh the GTK layer after calling system.

Steve & Patti Getzinger wrote:

Fredrik Rambris wrote:

Steve & Patti Getzinger wrote:

I am using system twice...independant of each other at this point.

If you have no problem of the two tasks running in paralell do try
system( "command &" );


We are still wrestling with the same monster. From what I gather system exits
the app and then returns when complete. This seems to be happening with the
whole app but not the actual function it is in. I have a dialog I want opened
at initialization of the app and after that dialog is open and dummy progress
bar running I want the system calls made. I have one func that locates a
filename and outputs that to a file. It then filters returns and counts the
filtered results. From there I take that count and create an array which is
populated with the filtered list. I then rm the file created. No matter what
I try the dialog either stops while the system command is running (I put an
if in the timer of the progress bar) or the dialog never  shows till the
system calls are complete. I have tried & which returns to me unable to open
file so the process is running but the func did not stop till it was
completed. So I put in a delay between the system call and opening the file
it creates. Stopped the progress bar on the dialog also. Tried the same delay
between the func calls and the dialog does not show until the system call is
complete even though it is called after the dialog func. Any ideas or
pointers?

TIA
Steve

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

My first is: locate filename > file
and the second is: rm -f file

Steve





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