سلام من وقتی از این تابع استفاده میکنم با این مشکل رو به رو میشم
Erorrکد:Public Function Tibia_Hwnd() As Long
Dim TibiaWindows As Process() = Process.GetProcessesByName("km.exe")
If TibiaWindows.Length = 0 Then
'No tibiaclients open, return 0
Return 0
Exit Function
End If
Return TibiaWindows(0).Id ' 0 is the first tibia-client. 1 is the second one, and so on...
End Function
کد:System.StackOverflowException was unhandled
InnerException: