Hi Pritpal It don't work.
The sample that I sent in the previous mail, work fine in you test environment ??? hb_out_log Application Internal Error - D:\SILVER~1\TESTS_~1\signals.EXE Terminated at: 2009.10.20 17:00:38 Unrecoverable error 6005: Exception error: Exception Code:C0000005 Exception Address:004B0549 EAX:00000003 EBX:01EC4BDC ECX:00000014 EDX:00000000 ESI:01EC5994 EDI:00000003 EBP:004FF237 CS:EIP:001B:004B0549 SS:ESP:0023:0022FC20 DS:0023 ES:0023 FS:003B GS:0000 Flags:00010202 CS:EIP: 8B 42 08 8B 00 48 74 2F 89 D0 83 C0 08 89 04 24 SS:ESP: 0022FCA4 00000014 005084F5 005084F3 00000006 005084F3 004FF214 00000201 0050EF73 004FCC60 0238AA44 00000006 00000000 0238AA18 004FA160 0041720F C stack: EIP: EBP: Frame: OldEBP, RetAddr, Params... Modules: 0x00400000 0x00140000 D:\SILVER~1\TESTS_~1\signals.EXE 0x7C900000 0x000B0000 C:\WINDOWS\system32\ntdll.dll 0x7C800000 0x000F5000 C:\WINDOWS\system32\kernel32.dll 0x6A1C0000 0x002A8000 D:\SilverGui\hbqtcommand\QtCore4.dll 0x77DD0000 0x0009B000 C:\WINDOWS\system32\ADVAPI32.DLL 0x77E70000 0x00092000 C:\WINDOWS\system32\RPCRT4.dll 0x77FE0000 0x00011000 C:\WINDOWS\system32\Secur32.dll 0x6FBC0000 0x00008000 D:\SilverGui\hbqtcommand\mingwm10.dll 0x77C10000 0x00058000 C:\WINDOWS\system32\msvcrt.dll 0x774E0000 0x0013D000 C:\WINDOWS\system32\OLE32.dll 0x77F10000 0x00048000 C:\WINDOWS\system32\GDI32.dll 0x7E410000 0x00090000 C:\WINDOWS\system32\USER32.dll 0x71AB0000 0x00017000 C:\WINDOWS\system32\WS2_32.DLL 0x71AA0000 0x00008000 C:\WINDOWS\system32\WS2HELP.dll 0x65100000 0x00ACB000 D:\SilverGui\hbqtcommand\QtGui4.dll 0x763B0000 0x00049000 C:\WINDOWS\system32\COMDLG32.DLL 0x77F60000 0x00076000 C:\WINDOWS\system32\SHLWAPI.dll 0x773D0000 0x00103000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\COMCTL32.dll 0x7C9C0000 0x00817000 C:\WINDOWS\system32\SHELL32.dll 0x76390000 0x0001D000 C:\WINDOWS\system32\IMM32.DLL 0x77120000 0x0008B000 C:\WINDOWS\system32\OLEAUT32.DLL 0x76B40000 0x0002D000 C:\WINDOWS\system32\WINMM.DLL 0x73000000 0x00026000 C:\WINDOWS\system32\WINSPOOL.DRV 0x6FF00000 0x0015F000 D:\SilverGui\hbqtcommand\QtNetwork4.dll 0x005E0000 0x012B7000 D:\SilverGui\hbqtcommand\QtWebKit4.dll 0x77C00000 0x00008000 C:\WINDOWS\system32\VERSION.dll 0x629C0000 0x00009000 C:\WINDOWS\system32\LPK.DLL 0x74D90000 0x0006B000 C:\WINDOWS\system32\USP10.dll 0x5AD70000 0x00038000 C:\WINDOWS\system32\uxtheme.dll 0x63000000 0x00014000 C:\WINDOWS\system32\SynTPFcs.dll 0x755C0000 0x0002E000 C:\WINDOWS\system32\msctfime.ime Called from QT_CONNECT_EVENT(0) Called from MAIN(18) in D:\SILVER~1\TESTS_~1\signals.prg ------------------------------------------------------------------------ Thanks CdQ On Tue, Oct 20, 2009 at 4:53 PM, Pritpal Bedi <bediprit...@hotmail.com>wrote: > > Hi > > My fault. I did not mention the other function. > > HB_FUNC( QT_CONNECT_EVENT ) > { > QObject * object = ( QObject * ) hb_parptr( 1 ); > int type = hb_parni( 2 ); > PHB_ITEM codeblock = hb_itemNew( hb_param( 3, HB_IT_BLOCK | HB_IT_BYREF > ) ); > Events * s_e = qt_getEventFilter(); > > char str[ 20 ]; > hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" ); /* Make > it a unique identifier */ > > s_e->listBlock << codeblock; > s_e->listActv << true; > s_e->listObj << object; > > object->setProperty( str, ( int ) s_e->listBlock.size() ); > > hb_retl( true ); > } > > => > > HB_FUNC( QT_CONNECT_EVENT ) > { > int type = hb_parni( 2 ); > PHB_ITEM codeblock = hb_itemNew( hb_param( 3, HB_IT_BLOCK | HB_IT_BYREF > ) ); > Events * s_e = qt_getEventFilter(); > > QObject * object = ( QObject* ) hbqt_gcpointer( 1 ); > if( !object ) > { > object = ( QObject* ) hb_parptr( 1 ); > } > > char str[ 20 ]; > hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" ); /* Make > it a unique identifier */ > > s_e->listBlock << codeblock; > s_e->listActv << true; > s_e->listObj << object; > > object->setProperty( str, ( int ) s_e->listBlock.size() ); > > hb_retl( true ); > } > > Regards > Pritpal Bedi > > -- > View this message in context: > http://www.nabble.com/HbQt-and-Connect-Events-tp25976580p25981393.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- QAC (I want something comfortable !!!) - Incremental Compilation with all MiniGUIs versions QAC (Quiero Algo Cómodo !!!) - Compilación Incremental con todas las versiones de MiniGUI Download: www.CarozoDeQuilmes.com.ar
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour