Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinZip command line pipe is being closed
Message
From
06/07/2012 18:47:26
 
 
To
06/07/2012 14:17:37
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01547758
Message ID:
01547782
Views:
38
>If I define the Process class to use RedirectStandardError=False, I obtain an output message from WZZip.exe which is:
>
>"win32/windows system error (print.cpp@311): The handle is invalid."
>
>So, this makes it at least that the program doesn't hang queuing in memory all other processes waiting in pending.
>
>But, I cannot find why this cannot run and gives this handle is invalid message.

Do you have a reliable repro for the problem, or is it intermittent?

If the former, maybe the contents of one or more of the files you're zipping is causing problems. In that case you can use a binary-style search to narrow it down quickly i.e. try zipping half the files, if still bad try zipping half of those etc.

If it's intermittent - is there any chance that two WZZip instances could be running simultaneously? Some zip utilities create temp files. If the temp file names are not unique you could get a collision if two instances run at the same time.

Another possibility might be if you're making successive calls to WZZip back-to-back. WZZip may report that it has completed, and behind the scenes instructed the file system to delete temp file(s), but the file system may not have finished deleting temp files from the last run before the next one starts. ISTR in some cases zip utility temp files can be large, up to twice the uncompressed size of the files you're zipping. So, it could take a while to delete large temp file(s).

Finally, if temp files get large, could you be hitting disk space limitations, or space quotas that may have been set?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform