I have this little application that is like a app window. Basically it just has shortcuts that we can click on. I have the below function that runs the shortcut. is there anyway to check for timeout calls? Because every once in awhile a user will get the following error. This particular error was from an IE shortcut so basically it was on the local machine. Other shortcuts point to mapped drives.
Code:<?xml version="1.0" encoding="utf-8"?>
<Exceptions>
<Exception>
<Date_Time>03/11/2013 11:29</Date_Time>
<Message>This operation returned because the timeout period expired</Message>
<StackTrace>
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at AppWindow.Form1.HyperJump(String p1)
at AppWindow.Form1.lvFiles_DoubleClick(Object sender, EventArgs e)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
</StackTrace>
</Exception>
</Exceptions>
Code:Private Sub HyperJump(ByVal p1 As String)
Try
If Not p1 Is Nothing Then
Dim myProcess As New Process()
Dim myProcessStartInfo As New ProcessStartInfo(p1)
myProcess.StartInfo.FileName = p1
myProcess.Start()
End If
Catch ex As Exception
Debug.WriteLine(ex.Message)
MsgBox("Timeout Occured" & Chr(13) & Chr(13) & ex.Message & Chr(13), vbOKOnly, "Failed To Start")
End Try
End Sub
