Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UnArchive eats up all the memory or system resources

Status
Not open for further replies.

tsisher

Programmer
Sep 14, 2004
36
GB
Hi,

Unarchiving sucks all the memory or system resources, as i don't know what is going on.

I have a utility which unarchive hundreds of files but while unarchiving the files it does not allow me to do any thing.

Example, while unarchiving, even I open internet explore it does not even allow me to type in the
url(Explorer keeps flickering) or what ever window I go that window keeps flickering while the code is running.

This is the code I'm using

ProcessStartInfo psinfo;
Process process;
process = null;

psinfo = new ProcessStartInfo ();
psinfo.FileName = filePath;
psinfo.Arguments = "-s";
psinfo.WorkingDirectory = Path.GetDirectoryName(filePath);
psinfo.CreateNoWindow = true;
psinfo.WindowStyle = ProcessWindowStyle.Hidden;
try
{
process = System.Diagnostics.Process.Start(psinfo);
process.Close();
DeleteFile(filePath);
}
catch
{

process.Kill();
process.Close();
throw;
}


As long as this utility is running, it does not allow me to do anything.

what is the trick I'm missing.

 
I'm waiting for your response guys..
What do I do so that it runs separately and does not effect other windows opened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top