This article gives a good overview on why structured exception handling is bad. Is there a way to get the robustness of stopping your server from crashing, while getting past the problems mentioned in the article?
I have a server software that runs about 400 connected users concurrently. But if there is a crash all 400 users are effected. We added structured exception handling and enjoyed the results for a while, but eventually had to remove it because of some crashes causing the whole server to hang (which is worse than just having it crash and restart itself).
So we have this:
- With SEH: only 1 user of the 400 get a problem for most crashes
- Without SEH: If any user gets a crash, all 400 are effected.
- But sometimes with SEH: Server hangs, all 400 are effected and future users that try to connect.