Hi.
My code is sat in a loop performing a UDPRead instruction with a timeout set (1000mS) waiting for a remote node to power up and send a message.
UDPRead(hSocket, pResponseBuf, responseSize, 1000, pSourcePort, pRemoteIP);
This code works fine as it will repeatedly timeout until the remote node powers up and the expected message is recieved
I have recently set the debugging level to Extended and this code breaks on the timeout reporting a NON-FATAL RUN TIME ERROR (-6808).
I have tried adding
SetBreakOnProtectionErrors(0)
UDPRead
SetBreakOnProtectionErrors(1)
but this has not helped.
In my opinion this is not a runtime error as the function provides a valid option to timeout but breaks before I get a chance to process the returned error value of the timeout.
Can anybody please suggest a way to locally supress the error without having to turn off extended debuging.
Thanks