Virusim,
SLEEP() is doing exactly what it is supposed to do :
"suspends the execution of the current thread for at least the specified interval"
Since your OnComm() codes runs in the current thread, it doesn't :-) However, if you test the comm input after the Sleep expires, I expect you'll find your data is there.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only