//------------------------------------------------------------------------------ // Application debug task -- // (C) Piero Giubilato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "task_Debug.c" // [Author] "Piero Giubilato" // [Version] "1.0" // [Modified by] "Piero Giubilato" // [Last revision] "20 Apr 2009" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Application debug task" // [Key documentation] // "Visual C++ Reference Help" // {Trace} //______________________________________________________________________________ // Standard components #include #include // Root components #include #include "TGString.h" // Application #include "task_Debug.h" // Ctor task_Debug::task_Debug() { // Info std::cout << "\n\n*** Task Debug started ***\n\n"; // Test TGHotStringVista(); } // Dtor task_Debug::~task_Debug() { // Info std::cout << "\n\n*** Task Debug completed ***\n\n"; } // Debugging crash on TGHotString delete on Vista void task_Debug::TGHotStringVista() { // Create std::cout << "Allocating a new TGHotString: "; TGHotString* HString = new TGHotString("Pippo"); TGString* GString = new TGString("Pluto"); std::cout << GString << "\n"; // Delete std::cout << "Deleting TGString:\n"; delete GString; std::cout << "Deleting TGHotString:\n"; delete HString; std::cout << "Well done!\n"; }