Serial Port
Posted: Wed Mar 20, 2013 2:14 pm
Today I made a strange experience. When I saw, that my PB 5.0 (Win x86) was not the newest version, I downloaded and installed PB 5.11. When I started my main application, program execution was stopped somewhere. Well, I could trace the fault and found, that
'ReadSerialPortData(2, @str1, 128)'
was responsible for the stop. Since I had another serial port, which worked as expected, I could compare the commands for both. Yes, there was a difference. The command for the fault free port was
'ReadSerialPortData(0, @str1, AvailableSerialPortInput(0))' .
I have tried to read more bytes from the port than were available. But, under ver 5.0, the program was running flawlessly up to this morning. Ok, I changed the command to what PB 5.11 is expecting, and now it is up and running.
BTW, who is responsible for the ugly and hard to read color combination for the file tabs of the IDE in 5.1x?
'ReadSerialPortData(2, @str1, 128)'
was responsible for the stop. Since I had another serial port, which worked as expected, I could compare the commands for both. Yes, there was a difference. The command for the fault free port was
'ReadSerialPortData(0, @str1, AvailableSerialPortInput(0))' .
I have tried to read more bytes from the port than were available. But, under ver 5.0, the program was running flawlessly up to this morning. Ok, I changed the command to what PB 5.11 is expecting, and now it is up and running.
BTW, who is responsible for the ugly and hard to read color combination for the file tabs of the IDE in 5.1x?