I have a c# class. Whenever this class is not in use anymore I want to do some things. For example log the current state and so on.
I use Borland C++ Builder. And i had o problem #include <Classes.hpp> class TMyObject : public TObject
I want to explicitly destroy a vector i开发者_如何学Cn a templated context. The following works for me (GNU C++ 4.3, 4.4 and Clang++ 1.1):
I am trying to define a class in the global scope which contains some dynamically-allocated arrays.When the class\' constructor is called, the program does not have access to user-defined parameters r
I am curious about the details of __del__ in python, when and why it should be used and what it shouldn\'t be used for.I\'ve learned the hard way that it is not really like what one would naively expe
Here is my scenario: I have a static object which will connect to a concurrent license service to get a license. I will need this license on some of the non-static methods in my WCF service.
I am learning memory management in C++ and I don\'t get the why only some of the destructors are called when leaving scope. In the code below, only obj1 destructor is called when myfunc ends, not for
I use some UserControls which get created开发者_JAVA技巧 and destroyed within my application during runtime (by creating and closing subwindows with these controls inside).
Developing environment: GNU GCC (g++) 4.1.2 While I\'m trying to investigate how to increase \'code coverage - particularly function coverage\' in unit testing, I\'ve found that some of class dtor se
I\'m curently working on dialogs in an M开发者_运维百科FC application and I\'m – admittedly – quite new to MFC.