My concern is with the single-stepping. Often the reason for single stepping through sections that utilize rs232 commands is to analyze the input and output to determine what might be going wrong, and in these cases, the suspended threads would make this difficult. I have run into an issue using IntallComCallback() where data coming back from an instrument gets out of sync, and has one or two missing or extra bytes in it. Analyzing this was very difficult, partly because the commands were not sent immediately, and was only solved by using a multithreaded approach such that the communication is never interrupted.
What does the "this" refer to in "If you really want to eliminate this, ...". The suspended threads in single-step mode? Or do I
understand that there is no way to use single-step mode without running into this issue of ComWrt() commands not being sent immediately?
Thanks.