[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Menu

#756 nsEcec: cannot handle exit code 259

closed-fixed
Plugin (101)
5
2008-03-29
2008-03-07
Anonymous
No

nsExec never returns (or doesn't return before timeout occurred) if the called application returns with exit code 259 (ERROR_NO_MORE_ITEMS). nsExec checks lpExitCode != STILL_ACTIVE of the function GetExitCodeProcess in a loop which should be avoided (see MSDN: GetExitCodeProcess -> Warning: ...).

Use WaitForSingleObject instead to wait for the process handle returned by CreateProcess. The handle is signaled if the process finishes. Call GetExitCodeProcess if WaitForSingleObject returned successfully.

Discussion

  • Amir Szekely

    Amir Szekely - 2008-03-29

    Logged In: YES
    user_id=584402
    Originator: NO

    Thanks, fixed.

     
  • Amir Szekely

    Amir Szekely - 2008-03-29
    • assigned_to: nobody --> kichik
    • summary: Bug in nsEcec: cannot handle exit code 259 --> nsEcec: cannot handle exit code 259
    • status: open --> closed-fixed
     

Log in to post a comment.