I've wrote a program that reads data from external RS-485 board and displays it in my application.
It works fine, but after running about 1 month, following error message was displayed;
"No port is not open. Check configuration"
This message is from following statement;
:
ComWrt(port, data, len);
RS232Error = ReturnRS232Err();
if (RS232Error)
DisplayRS232Error();
The return value of the RS232Error was -3, so above message was displayed.
I can not understand this situation, because, generally, this sort of message is displayed for the first time for mis-configure or something like that situation.
But there was no error message and worked fine, but after a month of running, this message was displayed.
Is it possible? Or is there any possiblilty to display THE Error message?