[Resuelto] Incidencia con FWH 24.07 y controles ActiveX

[Resuelto] Incidencia con FWH 24.07 y controles ActiveX

Postby AngelSalom » Thu Sep 26, 2024 5:43 pm

Me estoy encontrando un problema con el manejo de controles ActiveX y Fivewin 24.07
Uso muchos y muy variados en mis aplicaciones, pero he simplificado un ejemplo con el Shell.Explorer.
Este ejemplo muestra el diálogo y al cerrar el diálogo genera un error sin llegar a mostrar el msginfo

test.prg
Code: Select all  Expand view
#include 'fivewin.ch'

Function Main()

    Local oActiveX

    DEFINE DIALOG oDlg RESOURCE 'PRUEBA'

    oActiveX := TActiveX():Redefine( 4001, oDlg, "Shell.Explorer" )

    ACTIVATE DIALOG oDlg CENTERED ON INIT oActiveX:Do( 'Navigate', 'https://www.google.com' )

    Msginfo( 'fin' )

REturn( 0 )
 


test.rc
Code: Select all  Expand view

#include <windows.h>

PRUEBA DIALOG DISCARDABLE 18, 15, 459, 285
STYLE WS_POPUP|WS_CAPTION|WS_VISIBLE
CAPTION "grafico"
FONT 8, "Segoe UI"
{
  CONTROL "ActiveX Control", 4001, "TActiveX", 0x00000000, 45, 0, 324, 276
}
 


Parte del error:
Code: Select all  Expand view
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:02E00428
    EAX:0091E9AC  EBX:692E3340  ECX:02E00428  EDX:02E1D1D8
    ESI:02E00428  EDI:00BDE8DC  EBP:00BDE900
    CS:EIP:0023:02E00428  SS:ESP:002B:00BDE8D4
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010206
    Exception Parameters: 00000008 02E00428
    CS:EIP: 00 00 00 00 69 00 00 00 A4 E9 91 00 A4 E9 91 00
    SS:ESP: 692E1CA8 02E1D1D8 692E1770 00F91BE4 04823F68 03B99784 76C64DBD 00000000 02E1D1D8 00000016 00F914CC 00BDEB58 692DFE55 00F91B60 692574C0 69257440
    .
    .
    .
Called from DIALOGBOX(0) in .\source\classes\dialog.prg
Called from TDIALOG:ACTIVATE(309) in .\source\classes\dialog.prg
Called from MAIN(11) in test.prg
 


Para compilar :

fichero .bat
Code: Select all  Expand view
set bcc=bcc77
SET PATH=c:\si\nlen\%bcc%\bin;C:\si\nlen\harbour-bcc77\bin\win\bcc
set HB_USER_CFLAGS=-Ic:\si\nlen\%bcc%\include\windows\crtl -Ic:\si\nlen\%bcc%\include\windows\sdk -Lc:\si\nlen\%bcc%\lib
set HB_USER_LDFLAGS=-Lc:\si\nlen\%bcc%\lib; -Lc:\si\nlen\%bcc%\lib\psdk
c:\si\nlen\harbour-bcc77\bin\win\bcc\hbmk2.exe test.hbp -comp=bcc


fichero .hbp
Code: Select all  Expand view
-gui

test.prg
test.rc

-optim-
-ldflag+=-aa

-Ic:\si\nlen\fwh2407\include
-Lc:\si\nlen\fwh2407\lib
-lFiveh
-lFivehc
-luxtheme

hbct.hbc
xhb.hbc
hbziparc.hbc



Este mismo ejemplo con la versión 19.06 que estoy usando hasta la fecha funciona a la perfección.
¿Alguna sugerencia?
Last edited by AngelSalom on Fri Sep 27, 2024 7:23 am, edited 2 times in total.
Angel Salom
Visionwin Software - https://www.visionwin.com
------------------------------------------------------------
fwh 19.05 - harbour 3.2 - bcc 7.4
User avatar
AngelSalom
 
Posts: 727
Joined: Fri Oct 07, 2005 7:38 am
Location: Benicarló (Castellón ) - España

Re: Incidencia con FWH 24.07 y controles ActiveX

Postby AngelSalom » Thu Sep 26, 2024 5:51 pm

Mismo resultado, por ejemplo, con el fichero pdf.prg que hay en samples de fwh2407 construyéndolo con buildh

Code: Select all  Expand view
Application Internal Error - C:\si\nlen\fwh2407\samples\pdf.exe
Terminated at: 2024-09-26 19:51:00
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:00000000
    EAX:00000000  EBX:68851860  ECX:00000000  EDX:68857CE0
    ESI:00FDE87C  EDI:68858000  EBP:00FDE884
    CS:EIP:0023:00000000  SS:ESP:002B:00FDE868
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000008 00000000
    CS:EIP:
    SS:ESP: 6885189A 00000000 00000090 00000000 00000000 00000090 007107AC 00FDE8B0 75BB3803 007107AC 00000090 00000000 00000000 007107AC DCBAABCD 68851860

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    00000000 00FDE884   00FDE8B0 75BB3803 007107AC 00000090 00000000 00000000 007107AC DCBAABCD 68851860 00000090
    75BB3803 00FDE8B0   00FDE9A8 75BA4606 68851860 007107AC 00000090 00000000 00000000 BD6275CA 40000000 C0001388
    75BA4606 00FDE9A8   00FDEA0C 75BA408A 68851860 00000000 00000090 00000000 00000000 010BD000 00000001 BD62766E
    75BA408A 00FDEA0C   00FDEA48 75BADFEF 01E6B230 00000000 00000090 00000000 00000000 68851860 0138FC08 00000000
    75BADFEF 00FDEA48   00FDEAA0 770291BD 00FDEA64 00000020 00FDEA94 770290F0 00FDEA84 01E6B230 00000000 00000090
    770291BD 00FDEAA0   00FDEABC 68863286 DE24D610 0138FC08 00FDEACC 688AC2E4 00000000
    68863286 00FDEABC   00FDEAD8 68877685 DE24D674 68873460 00FDEAF0 688AD65D 00000001
    68877685 00FDEAD8   00FDEAFC 68877230 DE24D650 0138FC00 0138FC00 00000000 00FDEB44 688AC647 FFFFFFFF
    68877230 00FDEAFC   00FDEB08 6887311B 68873110
    6887311B 00FDEB08   00FDEB24 68872F42 00000001 68872F10 00642E4E 0134B7F8 68872F10
    68872F42 00FDEB24   00FDEB50 68937F84 0138FC00 BDC34CEB 00642E4E 00000000 01A5E100 6894EFD4 00FDEB74 6894DA20
    68937F84 00FDEB50   00FDEB60 002C8268 0134B7F8 01A5E100
    002C8268 00FDEB60   00FDEB98 002C873B 01A5E100 00000003 0071EBC4 00FDF150 0046320F 006AC5D0 00FDEB70 00000000
    002C873B 00FDEB98   00FDEBB4 00357E12 00000036 00000000 019C55AC 00000000 00000000
    00357E12 00FDEBB4   00FDECC8 00351C63 00000001 0071EBC4 FFFFFFFF 01995F04 00FDEBD8 00374705 019C4EF4 01995EA4
    00351C63 00FDECC8   00FDECFC 00358171 00642E44 00642434 019BEA9C 00000001 00FD0001 003580C8 00000034 00000000
    00358171 00FDECFC   00FDED30 003669D4 00000001 00000000 00000002 0047ACE8 00357EBD 00000000 0000002F 00000000
    003669D4 00FDED30   00FDED3C 003582F9 019B0000
    003582F9 00FDED3C   00FDED64 002899E5 00000000 0049BB15 00000000 004973F4 00000004 00FDED84 00357F84 01995E24
    002899E5 00FDED64   00FDED84 00357FC1 0071EBC4 00000029 00000000 019C4B9C 01260004 00000000


Modules:
00270000 004F0000 C:\si\nlen\fwh2407\samples\pdf.exe
76FB0000 001B2000 C:\Windows\SYSTEM32\ntdll.dll
763D0000 000F0000 C:\Windows\System32\KERNEL32.DLL
75900000 00279000 C:\Windows\System32\KERNELBASE.dll
764C0000 0007F000 C:\Windows\System32\ADVAPI32.DLL
75830000 000C4000 C:\Windows\System32\msvcrt.dll
757A0000 00086000 C:\Windows\System32\sechost.dll
76EC0000 0001A000 C:\Windows\System32\bcrypt.dll
76EE0000 000BA000 C:\Windows\System32\RPCRT4.dll
76A70000 000B8000 C:\Windows\System32\COMDLG32.DLL
754B0000 00079000 C:\Windows\System32\msvcp_win.dll
73240000 00019000 C:\Windows\SYSTEM32\MPR.DLL
74930000 00008000 C:\Windows\SYSTEM32\VERSION.DLL
70710000 0007F000 C:\Windows\SYSTEM32\WINSPOOL.DRV
75620000 00112000 C:\Windows\System32\ucrtbase.dll
767E0000 00280000 C:\Windows\System32\combase.dll
74B50000 00091000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.22621.3527_none_fbe8b6227808ef55\COMCTL32.DLL
75310000 00023000 C:\Windows\System32\GDI32.dll
76C40000 000C6000 C:\Windows\System32\shcore.dll
75D50000 0001A000 C:\Windows\System32\win32u.dll
75530000 000E2000 C:\Windows\System32\gdi32full.dll
75B80000 001AA000 C:\Windows\System32\USER32.dll
75DA0000 0004B000 C:\Windows\System32\SHLWAPI.dll
74C60000 006A4000 C:\Windows\System32\SHELL32.dll
76610000 00155000 C:\Windows\System32\OLE32.DLL
76E20000 0009C000 C:\Windows\System32\OLEAUT32.DLL
749B0000 00031000 C:\Windows\SYSTEM32\WINMM.DLL
698A0000 00006000 C:\Windows\SYSTEM32\MSIMG32.DLL
74C00000 0005F000 C:\Windows\System32\WS2_32.DLL
69870000 0002E000 C:\Windows\SYSTEM32\OLEDLG.DLL
72890000 0016D000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.22621.3810_none_9fa60f19e296017f\GDIPLUS.DLL
748F0000 00024000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
744D0000 00082000 C:\Windows\SYSTEM32\UXTHEME.DLL
75D70000 00025000 C:\Windows\System32\IMM32.DLL
762C0000 00107000 C:\Windows\System32\MSCTF.dll
743F0000 00013000 C:\Windows\SYSTEM32\kernel.appcore.dll
75DF0000 00082000 C:\Windows\System32\clbcatq.dll
765A0000 00063000 C:\Windows\System32\bcryptPrimitives.dll
68930000 0007E000 C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroPDF.dll
68860000 000CF000 C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroPDFImpl.dll
736A0000 001A2000 C:\Windows\SYSTEM32\urlmon.dll
6FD60000 0048E000 C:\Windows\SYSTEM32\WININET.dll
733D0000 0006F000 C:\Windows\SYSTEM32\MSVCP140.dll
74990000 00014000 C:\Windows\SYSTEM32\VCRUNTIME140.dll
73440000 0023A000 C:\Windows\SYSTEM32\iertutil.dll
73680000 0001D000 C:\Windows\SYSTEM32\srvcli.dll
74870000 0000B000 C:\Windows\SYSTEM32\netutils.dll
70B50000 00227000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.3672_none_6ec0f0a887fe525b\Comctl32.dll
68850000 0000E000 C:\Windows\SYSTEM32\atlthunk.dll
69EE0000 000F6000 C:\Windows\SYSTEM32\textinputframework.dll
70D80000 000CD000 C:\Windows\SYSTEM32\CoreMessaging.dll
69C40000 00291000 C:\Windows\SYSTEM32\CoreUIComponents.dll
73C00000 000C7000 C:\Windows\SYSTEM32\wintypes.dll
73110000 0000B000 C:\Windows\SYSTEM32\CRYPTBASE.DLL
687C0000 00085000 C:\Windows\SYSTEM32\sxs.dll

Called from ACTXEND(0) in .\source\classes\activex.prg
Called from (b)TACTIVEX(54) in .\source\classes\activex.prg
Called from TACTIVEX&#058;DESTROY(0) in .\source\classes\activex.prg
Called from TWINDOW:HANDLEEVENT(0) in .\source\classes\window.prg
Called from TACTIVEX&#058;HANDLEEVENT(1877) in .\source\classes\control.prg
Called from _FWH(3699) in .\source\classes\window.prg
Called from WINRUN(0) in .\source\classes\window.prg
Called from TWINDOW:ACTIVATE(1117) in .\source\classes\window.prg
Called from MAIN(18) in pdf.prg
------------------------------------------------------------------------
 
Angel Salom
Visionwin Software - https://www.visionwin.com
------------------------------------------------------------
fwh 19.05 - harbour 3.2 - bcc 7.4
User avatar
AngelSalom
 
Posts: 727
Joined: Fri Oct 07, 2005 7:38 am
Location: Benicarló (Castellón ) - España

Re: Incidencia con FWH 24.07 y controles ActiveX

Postby karinha » Thu Sep 26, 2024 6:37 pm

Holá, intente con el último build de HARBOUR:

https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/README.md

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7800
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Incidencia con FWH 24.07 y controles ActiveX

Postby AngelSalom » Thu Sep 26, 2024 7:22 pm

karinha wrote:Holá, intente con el último build de HARBOUR:

https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/README.md

Regards, saludos.


Es el que estoy utilizando para hacer las pruebas.
Angel Salom
Visionwin Software - https://www.visionwin.com
------------------------------------------------------------
fwh 19.05 - harbour 3.2 - bcc 7.4
User avatar
AngelSalom
 
Posts: 727
Joined: Fri Oct 07, 2005 7:38 am
Location: Benicarló (Castellón ) - España

Re: Incidencia con FWH 24.07 y controles ActiveX

Postby Antonio Linares » Thu Sep 26, 2024 7:40 pm

Angel,

Envíame por favor un wasap y te envío las librerías actualizadas
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42073
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Incidencia con FWH 24.07 y controles ActiveX

Postby AngelSalom » Fri Sep 27, 2024 7:23 am

Solucionado, gracias!
Angel Salom
Visionwin Software - https://www.visionwin.com
------------------------------------------------------------
fwh 19.05 - harbour 3.2 - bcc 7.4
User avatar
AngelSalom
 
Posts: 727
Joined: Fri Oct 07, 2005 7:38 am
Location: Benicarló (Castellón ) - España


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests