[1] Constructor The object will never be created. Destructor is NOT called. If you allocated ressources before the exception is thrown, they are NOT freed. [2] Destructors Technically, the object is left in an undefined state. Likely, Accessing it afterwards will fail, and resources may leak. Practically, destructors should NEVER throw. It violates even the most basic exception safety guarantee: that objects remain destructable, no matter what. For lots of more information, try the GOTW columns[^] that deal with exceptions
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
My first real C# project | Linkify!| FoldWithUs! | sighist