Two symptoms, one root cause. In the first, your application freezes when it talks to a com0com port — it sends, or waits to receive, and simply locks up until you kill it. In the second, the application works but the data is subtly wrong: characters from a previous exchange show up at the start of the next one, as if the line never cleared. Both are classic encounters between software written for real serial hardware and a virtual port that behaves better than hardware — and the com0com ReadMe’s own FAQ describes the mechanism and the fix. The fix is two emulation settings, and this page explains exactly which one you need, on which port, and why.
The mechanics: what a real UART does that com0com does not (by default)
A physical serial port has a tiny hardware receive buffer. If the receiving program does not read fast enough, incoming bytes overflow that buffer and are lost — engineers call this an overrun, and decades of serial software have been written assuming it happens: if nobody is listening, the data is gone, the sender carries on, and the line is clean for the next exchange. com0com, being software, can hold onto data instead of dropping it — and by default it does, because the ReadMe states that receive buffer overrun is disabled by default.
That single default explains both symptoms. Hangs: the flow of bytes no longer matches what the application was written to expect — data waits instead of being discarded, handshaking-by-timing breaks down, and a program that expected the line to “give up” sits waiting for a state that never arrives. Leftover characters: bytes the receiver never consumed are still sitting there when the next exchange starts, so the application reads stale data first. Neither symptom means the driver is broken; both mean your application was written against hardware behaviour the virtual port is not currently imitating.
The fix: EmuOverrun on the receiving port
The ReadMe FAQ’s prescription for the hang and leftover-character cases is to enable receive buffer overrun emulation on the receiving port — the port whose application must drop unread bytes the way hardware would. From the Setup Command Prompt (administrator), with the pair’s receiving end named CNCB0 as an example:
command> change CNCB0 EmuOverrun=yes
The same setting exists as a checkbox for the port in SetupG, com0com’s graphical utility — our SetupG guide shows where each emulation option lives. Getting the direction right matters: EmuOverrun belongs on the port attached to the program that receives the data that is piling up. If both ends run legacy software with the same assumption, both ends can need it — change one, test, then judge the other.
The companion setting: EmuBR on the sending port
The ReadMe FAQ pairs the overrun fix with a second one on the opposite end: baud rate emulation. By default it is off, which means bytes cross the virtual pair as fast as the machine can move them — infinitely faster than the 9,600 baud line your application may believe it is using. Programs that pace their reads and writes by expected transmission time can misbehave just as surely as with overrun. Enable it on the sending port:
command> change CNCA0 EmuBR=yes
So the documented combination is: EmuOverrun=yes on the receiver, EmuBR=yes on the sender. Which of the two you actually need depends on your symptom:
- Application freezes or waits forever → start with EmuOverrun on the receiving port.
- Stale characters at the start of an exchange → EmuOverrun on the receiving port is again the first move; it is what lets unconsumed bytes die instead of lingering.
- Application behaves as if data arrives too fast or out of rhythm (timeouts firing instantly, protocols desynchronising) → add EmuBR on the sending port so delivery is paced at the configured baud rate.
Apply, then test properly
- Change one setting at a time. Changing both before testing leaves you unable to say which one mattered, and you may keep an unnecessary emulation forever.
- Close the applications using the pair, apply the change, then reopen them so the port is picked up with its new behaviour. A reboot is the heavy-handed way to be certain everything re-opened cleanly.
- Re-run the exact exchange that froze or produced leftovers. For a neutral check of the pair itself, use the two-window loopback test from Create Your First Virtual COM Port Pair before involving your real application again.
- If the symptom improved but did not vanish, apply the companion setting (EmuBR or EmuOverrun on the other role) and test once more.
One warning about a third setting you will see sitting next to these: EmuNoise deliberately corrupts data with a configurable probability, for testing how software handles a noisy line. It is a test instrument, not a fix — if it is enabled on one of your ports from someone’s earlier experiment, that alone can produce “corrupted data” symptoms, and the cure is to turn it off. The SetupG guide and the setupc reference document all three settings side by side.
If it still hangs
A quick isolation test before you blame the settings
If you are unsure whether the hang lives in the application or in the pair, separate them. Replace the receiving application with a plain serial terminal on the same port, and drive the sending end as before: if the terminal receives happily while your application froze on the identical stream, the application’s expectations are the story and the emulation settings are the fix. If even the terminal stalls, suspect the pair itself — create a brand-new pair with completely default settings and repeat the test on it. A fresh pair that behaves rules out accumulated configuration from forgotten experiments (an EmuNoise left enabled months ago has embarrassed more than one engineer), and a fresh pair that misbehaves identically points one layer down, at the driver state covered by the post-update recovery and the clean uninstall. Ten minutes of isolation beats an afternoon of changing settings at random — a principle the ReadMe FAQ’s own symptom-by-symptom advice quietly assumes.
One more consistency check while you are here: the two applications still need to agree on the port settings they believe they are using — baud rate, data bits, parity. On a virtual pair these numbers do not change the wire (there is no wire), but applications compute timeouts and frame expectations from them, and a sender pacing itself by EmuBR at one configured rate while the receiver expects another is a quiet source of “almost works” behaviour. Set both ends to the same values, the values the real hardware would have used, and let the emulation settings — not mismatched configurations — do the imitating.
Work the surrounding suspects in this order. Confirm the program on the other end of the pair is actually running and has the partner port open — a virtual pair with only one end held open is a waiting room, and many applications block exactly there. Confirm both ends use the names and numbers you think they do (a renamed or re-created pair is a classic trap after edits — see port not recognized). Confirm the pair survived any recent Windows update intact (see post-update recovery). And accept one honest boundary: com0com emulates a null-modem link, and software that depends on precise physical-layer timing or electrical behaviour beyond what the emulation settings cover may never be fully satisfied by any virtual port. That is rare, specific, and diagnosable — the settings above resolve the overwhelming majority of hangs, because they exist precisely because the project’s own FAQ kept meeting this problem.
