Problems to Debug SerialPort in VB.NET !

Язык Visual Basic на платформе .NET.

Модераторы: Ramzes, Sebas

radislav
Начинающий
Начинающий
 
Сообщения: 22
Зарегистрирован: 26.01.2003 (Вс) 23:46
Откуда: Israel

Problems to Debug SerialPort in VB.NET !

Сообщение radislav » 04.04.2008 (Пт) 20:00

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.
----> The best things are ahead ---->>

Nord777
Гуру
Гуру
Аватара пользователя
 
Сообщения: 1144
Зарегистрирован: 22.02.2004 (Вс) 13:15
Откуда: Подольск

Сообщение Nord777 » 05.04.2008 (Сб) 10:34

Изображение
Вложения
Options.PNG
Options.PNG (29 Кб) Просмотров: 372
Microsoft Visual Studio 2008
Microsoft .NET Framework 3.5


Вернуться в Visual Basic .NET

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 2

    TopList  
cron