timer vc6
hi,
check what have you set the SetTimer to, i,e the time you want the OnTimer to be triggered, the hang you are seeing is due to the reason that when the OnTimer executes the call to ReadFile blocks till the data is read, so the whole app is blocked till anything is read from ReadFile and ReadFile returns, hence i suggest you to use multiple threads in your app, i,e create a new thread and its sole purpose is to read via ReadFile.
hope that clears your issue.