Browse by Tags

All Tags » C++ (RSS)
In the previous post , we saw that linking a C++ static library compiled with /EHs to a mixed mode application prevented the destructor from running when an exception is thrown. Here ’s the sample project that demonstrates the behavior, in case you aren...
Consider this piece of C++ code. 1: using namespace std; 2: 3: class C 4: { 5: public : 6: C() 7: { 8: cout << "Constructed" ; 9: } 10: ~C() 11: { 12: cout << "Destructed" ; 13: } 14: }; 15: 16: void SomeFunc() 17: { 18...