On Mon, 22 Jun 2009, Xavi wrote: > Thanks Viktor, > Override new/delete operator not work when active HB_FM_STATISTICS because > fm.c is not compiled in mode c++. > My idea about fm.cpp was to be incorporated the file in the compilation of > the application user pending further comments, views. > But of course, to incorporate in Harbour the easiest way is.- > Incorporate a new file in source/vm fmp.cpp (attached). > Change the file source/vm/Makefile (attached) .- > ... > CPP_SOURCES=\ > fmp.cpp \ > Now you can build Harbour with HB_FM_STATISTICS, I've only tested with MinGW. > IMHO I think it's very interesting result of this with static compilation of > hbqt. > I did not tested but I think it could work to know what classes deleted and > are not deleted in hbqt.
The easiest way is using external memory statistic module, i.e. valgrind which can be used with any binaries. It's not necessary to create special ones. C++ compilers are not available in all builds (i.e. some MINGW distributions do not contain G++) so we cannot introduce fmp.cpp as default part of build process. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour