If I already have any
PDF file being displayed in Adobe Reader, making the call
System.Diagnostics.Process proc = Launch(sUniqueName, sPath, true, m_iWaitNone)
, then immediately examining proc.HasExited would indicate true, although the "sUniqueName" PDF would still be open. This can't be correct!?
If I don't have any PDF files open before making the call, "sUniqueName" would be open, and examining proc.HasExited would indicate false... which is correct. This is very repeatable. Why would proc.HasExited = true when the PDF is still being
displayed just because another PDF was opened prior to the call?
Thanks for any insight... this is driving me crazy! :-P
public System.Diagnostics.Process Launch(string sFilename, string sArgs, bool bCreateWindow, int iWaitMode)
const int ERROR_FILE_NOT_FOUND = 2;
const int ERROR_ACCESS_DENIED = 5;
System.Diagnostics.Process proc =
View Complete Post