Hello forum,
I am exreriencing hard problems to DEBUG a SerialPort class in VB.NET application.
1. Before I am using a serial port control from VB3-4-5-6. It was no problems to use it in all modes (events and polling ....... all combinations).
Also to debug was no problems.
(I can stop with debugger in any point of application, without closing
the port, and to continue after a break)
2. Now, in VB.NET i have an a SerialPort object, defined properly to port, databits, baudrate and so on ... (like before).
3. The device sending messages every time period (1 sec) in text mode. Each message ends with CR. Simple serial external device, connected to the USB port with USB-RS232 converter (defined as COM20).
4. I catch each each character with event and combines message till CR.
Than, i parse the message for further processing..... (calculations and displaying the some information on the opened form)
(The same thing i was doing with VB6 hundreds of times).
5. Now, when I am stopping with debugger on any point, and than continue, the PC hungs and reboots itself. I can't even to see what the problem (exception?).
6. Trying to include Timer, in order, to separate threads, for processing the incomming string - not helps.
7. Who experience and solve this kind of problem ?
8. Where i can find a good reference material (forum has not much about SerialPort in VB.NET). Maybe some article from other source.
Radik.