Here's the short story: I need to debug some very specific error situations in our application. The application runs on a duplex system consisting of two machines connected by a serial cable; over this cable both machines exchange some kind of a "heart-beat" signal. In very rare unpredictable cases in the field, a signal distortion within physical medium has caused misbehavior. We can partially reproduced it in a "brutal" way by simply stripping off the serial cable.
Now, for convenience I successfully emulate the serial cable using the com0com null-modem emulator (http://com0com.sourceforge.net/), so that both processes run on the same machine using virtual COM ports. That works perfectly.
My question is: how can I use com0com to simulate a cable break / serial port failure / signal distortion of whatsoever kind? Can I e.g. purposefully block one of the virtual ports for sending/receiving data?