delphi _sloHOST_ wrote:
> The application >freezes< until 7-zip is done. 
> 
> How could I prevent this >freezing<??????

It's freezing because you've told it to wait until the program finishes. 
That's what WaitForSingleObject does.

The JCL has a function, JclSysUtils.Execute, which will run a program 
and call a function of your choice on each line the program prints. 
Within that function, you can update your program's display so that it 
does not appear hung anymore. You can also collect the lines into the 
memo, or wherever else, without requiring a temporary disk file.

http://jcl.sf.net/

I would prefer to wait for the program to terminate from a separate 
thread, but setting up a separate thread can be a hassle.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to