A
Atara
On Windows Vista, Process.Start() generates Win32Exception.
Sample Code:
Dim selfProc As String = System.Windows.Forms.Application.ExecutablePath
System.Diagnostics.Process.Start(Chr(34) & selfProc & Chr(34))
The generated Exception:
System.ComponentModel.Win32Exception: The parameter is incorrect
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo))
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at ...MyProcedure(...)
What is wrong with my code?
Thanks
Atara
Sample Code:
Dim selfProc As String = System.Windows.Forms.Application.ExecutablePath
System.Diagnostics.Process.Start(Chr(34) & selfProc & Chr(34))
The generated Exception:
System.ComponentModel.Win32Exception: The parameter is incorrect
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo))
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at ...MyProcedure(...)
What is wrong with my code?
Thanks
Atara