3 ms·
One of my first professional projects out of school was a client/server system using WinForms. I wrote the server, another guy wrote the client. We worked hard
by mattgreenrocks 13y ago
One of my first professional projects out of school was a client/server system using WinForms. I wrote the server, another guy wrote the client.
We worked hard and fleshed out a good design quickly. We iterated a few times, then released. We soon got a major bug report from the field: the server would lock itself up after some time! I was baffled; I didn't write much in the way of threading code. I pored over the entire codebase several times looking for any possibility of deadlock. Nothing.
Finally, I went out to the customer site when it happened again. Someone had selected text in the console window the server was running on, which effectively halted the process. I wrote a small wrapper around the server that launched it as a service, and that fixed it.
(I probably should have written it as a service originally, but I was fresh out of school, so I instead took it as a hard knock.)
- csense 13y agoI hate it when Windows processes that really should output to the console, don't. Users should learn how to deal with console windows.
- mattgreenrocks 13y agoYeah, but the console subsystem is ancient. It's much easier to diagnose problems with the console always up, but I'm happy to settle for a log file. Also happy to not be writing servers for Windows anymore. :)