I have a VB 2008 application that sends orders to NT. If I run the app from within VB 2008, send an order to NT, then try to exit the app, I get "ArgumentException : No more data to read". When I click Ok, I am in Break mode. The top 3 entries of the call stack are as follows:
Call Stack:
AtiSocket.ReadString()
AtiSocket.ReadInteger()
AtiSocket.Loop()
The current thread is "NT AtiSocket"
If I then click the "Run" button (F5), execution continues, and the program terminates normally. My app calls the Teardown function in it's Closing event, but I notice the exception occurs before that event gets called. If I run my app outside VB 2008, as a stand-alone .exe, everything works normally. Any ideas what is wrong?
Comment