ctxis / RDP-Replay

Replay RDP traffic from PCAP
Apache License 2.0
182 stars 61 forks source link

Catch exceptions in main()? #4

Open elfring opened 8 years ago

elfring commented 8 years ago

I expect that exception handling is usually supported by a C++ program. I wonder why your function "main" does not contain corresponding try and catch instructions so far.

How do you think about recommendations by Matthew Wilson in an article?

Would you like to adjust the implementation if you consider effects for uncaught/unhandled exceptions like they are described by Danny Kalev?

SteveWare commented 8 years ago

The core library (libfreerdp) is in C and does not support error handling. There are some elements of C++ that I'm using (for stream reassembly and SSL processing), so it's a mix. There are no plans to put exception handling in at the moment.