Hi Xavi,
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.
Here the problem is that Harbour core is a pure
ANSI C project, so we shouldn't add .cpp files
to it just like that. Probably there could be
tricks done, but I'd still definitely keep out
.cpp files from core. Especially this close to
the release.
Probably it's possible to use this feature even now
when C++ mode is forced for core compilation. This
is default for msvc and watcom and there should be a
way to enable it for other compilers, too. For mingw,
this will need some simple changes.
Or, move this logic outside the core, either to hbqt,
or elsewhere.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour