cybertank378
New member
- Joined
- Jul 10, 2012
- Messages
- 3
- Programming Experience
- Beginner
Private Function GetGTAProc() As Process
Dim Procs() As Process
Procs = Process.GetProcesses
For Each proc As Process In Procs
If proc.ProcessName.Equals("gta_sa") Then
Return proc
End If
Next
End Function
Warning 1 Function 'GetGTAProc' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. D:\Projects\Source\gta_launcher\trunk\idgssamplauncher\frm_main.vb 45 5 idgssamplauncher
can you help me ?
Dim Procs() As Process
Procs = Process.GetProcesses
For Each proc As Process In Procs
If proc.ProcessName.Equals("gta_sa") Then
Return proc
End If
Next
End Function
Warning 1 Function 'GetGTAProc' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. D:\Projects\Source\gta_launcher\trunk\idgssamplauncher\frm_main.vb 45 5 idgssamplauncher
can you help me ?