locked
Handle invalid? RRS feed

  • Question

  • Hi all, I want to run an executable file with HPC.

    How ever, I get the invalid handle error when running it.

    System.IO.IOException: invalid handle

       On System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       On System.Console.set_CursorVisible(Boolean value)
       On SWEdit.Program.Run(String[] args)
       On SWEdit.Program.Main(String[] args)

    Can anyone help this? Thanks a lot!

    Saturday, January 4, 2020 6:32 PM

All replies

  • I solved this problem by running another exe to call this exe.

    #include <windows.h>
    
    int main()
    {
        system("start /w ***.exe");
        return 0;
    }


    Sunday, January 5, 2020 4:15 AM