Hi,
> Please test these modifications in real MS-Windows systems.
Clean and nice as always, thank you Przemek!
After testing with and without -DHB_TR_LEVEL_DEBUG cflags, it works as it is
expected.
In my test case the QApplication.cpp: line 212-214 contains:
HB_TRACE( HB_TR_DEBUG, ( " new_QApplication %i B %i
KB", ( int ) hb_xquery( 1001 ), hbqt_getmemused() ) );
HB_TRACE( HB_TR_DEBUG, ( "0=%i 0=%i 2=%i 3=%i 4=%i 5=%i 6=%i 7=%i 8=%i 9=%i
A=%i B=%i C=%i D=%i E=%i F=%i", 0,1,2,3,4,5,6,7,8,9,10,11,12,12,14,15 ) );
HB_TRACE( HB_TR_DEBUG, ( "0=%i 0=%i 2=%i 3=%i 4=%i 5=%i 6=%i 7=%i 8=%i 9=%i
A=%i B=%i C=%i D=%i E=%i F=%i 10=%i", 0,1,2,3,4,5,6,7,8,9,10,11,12,12,14,15,16
) );
and DbgView shows with HB_TR_LEVEL_DEBUG defined in fm.c:
00062246 17:42:34.462 [4612] c:\downloads\harbour\src\vm\fm.c:1187:
HB_TR_DEBUG hb_xquery(1001)
00062247 17:42:34.462 [4612] c:\downloads\harbour\src\vm\fm.c:1187:
(???) new_QApplication 0 B 3100 KB
00062248 17:42:34.462 [4612] QApplication.cpp:213: HB_TR_DEBUG 0=0
0=1 2=2 3=3 4=4 5=5 6=6 7=7 8=8 9=9 A=10 B=11 C=12 D=12 E=14 F=15
00062249 17:42:34.462 [4612] QApplication.cpp:214: HB_TR_DEBUG more
then 16 parameters in message '0=%i 0=%i 2=%i 3=%i 4=%i 5=%i 6=%i 7=%i 8=%i
9=%i A=%i B=%i C=%i D=%i E=%i F=%i 10=%i'
My test results:
1. Analyzing the output produced by the line 212 we can see that the file, line
and level info is altered. Maybe is useful to send here the original info
instead of hb_xquery trace location.
2. The insertion of the hb_xtraced function in nortl.c it was necessary to
build harbour with HB_TR_LEVEL_DEBUG defined:
HB_BOOL hb_xtraced( void )
{
return HB_FALSE;
}
Best regards,
István
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour