Browse by Tags

All Tags » C# 3.0 » Windbg (RSS)
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...
Mixing SetEnvironmentVariable and getenv is asking for trouble, as we recently found to our dismay (and exasperation!). It took some serious debugging to figure out the actual problem – let’s see if you can figure it out. Here’s some C++/CLI code that...