Hi Pritpal,

After download the last SVN, I changed the hbqt_slots.cpp and rebuilt hbqt
library.

Then, I compile my sample and get the same error.  Changes hasn't effect,
the problem continue

I have made a little sample program called signals.prg for test

#include "common.ch"

STATIC qApp

INIT PROCEDURE Qt_Start()
   qApp := QApplication():new()
   RETURN

EXIT PROCEDURE Qt_End()
   qApp:quit()
   RETURN

PROCEDURE Main()
   Local oWin
   oWin := QMainWindow():new()
   oWin:ReSize( 640, 400 )
   oWin:Move( 10 , 10 )
   QT_CONNECT_EVENT( oWin:pPtr , 6 , {|o,e| My_Events( o , e ) } )  // *<--
Cancel here*
   oWin:Show()
   qApp:exec()
RETURN .T.

Function My_Events( o , e )
   MsgInfo( "Key Pressed" )
Return .T.

STATIC FUNCTION MsgInfo( cMsg )
   LOCAL oMB
   oMB := QMessageBox():new()
   oMB:setInformativeText( cMsg )
   oMB:setWindowTitle( "Harbour-QT" )
   oMB:exec()
RETURN nil

#ifdef __PLATFORM__WINDOWS
PROCEDURE hb_GtSys()
   HB_GT_GUI_DEFAULT()
   RETURN
#endif

hb_out.log:

Application Internal Error - D:\SILVER~1\TESTS_~1\signals.EXE
Terminated at: 2009.10.20 16:11:06
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005
    Exception Address:004B0538
    EAX:00000003  EBX:01EC4BDC  ECX:00000014  EDX:00000000
    ESI:01EC5994  EDI:00000003  EBP:004FF237
    CS:EIP:001B:004B0538  SS:ESP:0023:0022FC20
    DS:0023  ES:0023  FS:003B  GS:0000
    Flags:00010202
    CS:EIP: 8B 42 08 8B 00 48 74 30 89 D0 83 C0 08 89 04 24
    SS:ESP: 0022FCA4 00000014 005084F5 005084F3 00000006 005084F3 004FF214
00000201 0050EF73 004FCC60 0238594C 0238AA44 00000006 00000000 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(22) in D:\SILVER~1\TESTS_~1\signals.prg
------------------------------------------------------------------------

Regards
CdQ












On Tue, Oct 20, 2009 at 2:28 PM, Pritpal Bedi <bediprit...@hotmail.com>wrote:

>
> Hi
>
> For a quick solution change as below:
>
> HB_FUNC( QT_DISCONNECT_EVENT )
> {
>   QObject * object = ( QObject * ) hb_parptr( 1 );
>   int       type   = hb_parni( 2 );
>   bool      bRet   = false;
>   Events  * s_e    = qt_getEventFilter();
>
>   char str[ 10 ];
>   hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" );    /* Make
> it a unique identifier */
> ...
> }
>
>         =>
>
> HB_FUNC( QT_DISCONNECT_EVENT )
> {
>   int       type   = hb_parni( 2 );
>   bool      bRet   = false;
>   Events  * s_e    = qt_getEventFilter();
>   QObject * object    = ( QObject* ) hbqt_gcpointer( 1 );          /* get
> sender    */
>   if( !object )
>   {
>      object = ( QObject* ) hb_parptr( 1 );
>   }
>
>   char str[ 10 ];
>   hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" );    /* Make
> it a unique identifier */
> ...
> }
>
> And let me know if it helps.
>
> Regards
> Pritpal Bedi
>
>
>
> --
> View this message in context:
> http://www.nabble.com/HbQt-and-Connect-Events-tp25976580p25979231.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

Reply via email to