Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21346

Win32Exception was unhanded

$
0
0
Hey guys! New to this forum :)

Okay so basically when I click start on the debugging process I get Win32Exception has occurred or unhandled exception.
This is the code:

Public Function ExecuteCommand(ByVal filePath As String, ByVal arguments As String) As String
Dim p As Process
p = New Process()
p.StartInfo.FileName = filePath
p.StartInfo.Arguments = arguments
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.Start()
Return p.StandardOutput.ReadToEnd()
End Function

The issue is with "p.Start()".

Viewing all articles
Browse latest Browse all 21346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>