c# - ProcessStartInfo doesn't start application and Error code -532462766 -


i'm trying launch application using system.diagnostic.process way :

if (this.isrequiredfieldfilled()) {     processstartinfo start = new processstartinfo();                      messagebox.show("pic" + up.pathpic);     start.filename = up.pathpic;      //start.windowstyle = processwindowstyle.normal;     //start.createnowindow = true;     int exitcode;      try     {         using (process proc = process.start(start))         {             proc.waitforexit();             exitcode = proc.exitcode;             messagebox.show(exitcode.tostring());         }     }     catch (exception ex)     {         messagebox.show("exception  -> " + ex.message);     }  } else {     //todo handle input } 

i can see spinner nothing apear , receive return code -> -532462766 don't understand because, when double click on application there no problem, , if launch app process work too.

did miss ?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -