Antonio, Anserkk
On Windows 10 - Code: Select all Expand view RUN
Edizione Windows 10 Pro
Versione 20H2
Data installazione: 01/11/2021
Build sistema operativo 19042.1348
Esperienza Windows Feature Experience Pack 120.2212.3920.0
1) I downloaded first this instal exe from
https://developer.microsoft.com/en-us/m ... /webview2/ as wrote from Anserkk
2) I create the webview.lib from webview.dll with this configuration
- Code: Select all Expand view RUN
LIBRARY WEBVIEW.DLL
EXPORTS
_webview_bind @1 ; webview_bind
_webview_create @2 ; webview_create
_webview_destroy @3 ; webview_destroy
_webview_dispatch @4 ; webview_dispatch
_webview_eval @5 ; webview_eval
_webview_get_window @6 ; webview_get_window
_webview_init @7 ; webview_init
_webview_navigate @8 ; webview_navigate
_webview_return @9 ; webview_return
_webview_run @10 ; webview_run
_webview_set_size @11 ; webview_set_size
_webview_set_title @12 ; webview_set_title
_webview_terminate @13 ; webview_terminate
I tried the sample of Antonio ramon.prg
http://fivetechsupport.com/forums/viewtopic.php?p=248110&sid=65fe9ba9c00a26a586f10b5636b63fc3#p2481103) After compiled the test the procedure open a window and
then crashed I have this error
hb_out.log- Code: Select all Expand view RUN
Application Internal Error - C:\Work\Errori\WebView\ramon\ramon.Exe
Terminated at: 2022-02-16 17:46:54
Unrecoverable error 6005: Exception error:
Exception Code:C0000005 ACCESS_VIOLATION
Exception Address:5B0EDCC9
EAX:00000000 EBX:00919B48 ECX:00000000 EDX:00916560
ESI:5B16B56C EDI:00000000 EBP:0019F184
CS:EIP:0023:5B0EDCC9 SS:ESP:002B:0019F17C
DS:002B ES:002B FS:0053 GS:002B
Flags:00010212
Exception Parameters: 00000000 00000000
CS:EIP: 8B 08 8B 51 0C 89 55 F8 83 7D 08 00 74 0B 8B 45
SS:ESP: 3B001548 3B0A8120 0019F1A8 5E5C1D2C 00916560 80010106 00000000 00000000 B33AFC51 80010106 00000000 0019F1DC 5AE591CE 00919B48 80010106 00000000
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
5B0EDCC9 0019F184 0019F1A8 5E5C1D2C 00916560 80010106 00000000 00000000 B33AFC51 80010106 00000000
5E5C1D2C 0019F1A8 0019F1DC 5AE591CE 00919B48 80010106 00000000 3B0A8120 00000029 80000030 00000000 3538BFCA
5AE591CE 0019F1DC 0019F234 5AE590E2 00000000 0091FBB8 00000000 00919B48 5B042684 00000030 3B040300 00000033
5AE590E2 0019F234 0019F270 5AE0DBF3 00000000 0091FBB8 00000000 00919B48 00000000 3B0A80C0 00000029 80000030
5AE0DBF3 0019F270 0019F294 5E5C265D 00000001 00000000 0091FBB8 00000000 00919B48 0091FBB8 00000000
5E5C265D 0019F294 0019F2D0 5E5C1343 00907988 00000001 00000000 0091FBB8 00000000 00919B48 0000006E 0000006E
5E5C1343 0019F2D0 0019F2F4 5E5C1D0A 00000000 00000000 00919B48 3B0A80C0 B33AFF0D 80010106 00000000
5E5C1D0A 0019F2F4 0019F328 5AE591CE 00919B48 80010106 00000000 3B0A80C0 00000029 80000030 00000000 3538BD3E
5AE591CE 0019F328 0019F380 5AE590E2 00000000 0091FBB8 00000000 00919B48 5B042684 00000030 0019F364 3B040240
5AE590E2 0019F380 0019F3BC 5AE0DBF3 00000000 0091FBB8 00000000 00919B48 00000000 3B0A8060 00000029 80000030
5AE0DBF3 0019F3BC 0019F3E0 5E5C265D 00000001 00000000 0091FBB8 00000000 00919B48 0091FBB8 00000000
5E5C265D 0019F3E0 0019F41C 5E5C1343 0091FED0 00000001 00000000 0091FBB8 00000000 00919B48 0000006E 0000006E
5E5C1343 0019F41C 0019F490 5E5C129C 00000000 00000000 00919B48 00000000 5B0F0B56 0019F588 0019F454 00000000
5E5C129C 0019F490 0019F6E4 5B0F3588 00000000 0091FBB8 00000000 00916560 5CC2C30F 0019F6F4 0090B4D0 0019F518
5B0F3588 0019F6E4 0019F7D4 5B0E995F 000C05F4 00000000 5B16BCA0 5B0EB87C 0019F708 0091A118 0019F7D4 5B0E990B
5B0E995F 0019F7D4 0019F7F8 5B0E96D7 00000000 00000000 5CC2C213 0091A118 0019FF60 5B12F0DD FFFFFFFF
5B0E96D7 0019F7F8 0019F81C 5B0E1090 00000000 00000000 0000000B 00000000 00000000 0091A118 00836F04
5B0E1090 0019F81C 0019F834 00458021 00000000 00000000 00000000 005A7240
00458021 0019F834 0019F85C 004E3714 005A754C 00000000 00837FAC 00000026 00000000 025F775C 00000000 00000000
004E3714 0019F85C 0019F97C 004DD4C6 00000003 00000000 00000000 005A70F0 004FB3D3 02620A2C 0019F894 004FEAFA
Modules:
00400000 0046C000 C:\Work\Errori\WebView\ramon\ramon.Exe
77190000 001A3000 C:\WINDOWS\SYSTEM32\ntdll.dll
76710000 000F0000 C:\WINDOWS\System32\KERNEL32.DLL
75290000 00214000 C:\WINDOWS\System32\KERNELBASE.dll
76E00000 0007A000 C:\WINDOWS\System32\ADVAPI32.DLL
76A30000 000BF000 C:\WINDOWS\System32\msvcrt.dll
76690000 00075000 C:\WINDOWS\System32\sechost.dll
762F0000 000BF000 C:\WINDOWS\System32\RPCRT4.dll
75E00000 000AF000 C:\WINDOWS\System32\COMDLG32.DLL
75510000 00281000 C:\WINDOWS\System32\combase.dll
76BF0000 00120000 C:\WINDOWS\System32\ucrtbase.dll
74810000 00019000 C:\WINDOWS\SYSTEM32\MPR.DLL
74870000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
769A0000 00087000 C:\WINDOWS\System32\shcore.dll
732F0000 0008D000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.19041.1110_none_c0da534e38c01f4d\COMCTL32.DLL
74080000 00072000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
76800000 001A0000 C:\WINDOWS\System32\USER32.dll
754D0000 00024000 C:\WINDOWS\System32\GDI32.dll
76BD0000 00018000 C:\WINDOWS\System32\win32u.dll
75120000 000DC000 C:\WINDOWS\System32\gdi32full.dll
77030000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
76500000 0007B000 C:\WINDOWS\System32\msvcp_win.dll
757A0000 005B3000 C:\WINDOWS\System32\SHELL32.dll
763B0000 000E3000 C:\WINDOWS\System32\OLE32.DLL
75D60000 00096000 C:\WINDOWS\System32\OLEAUT32.DLL
73380000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
73260000 00028000 C:\WINDOWS\SYSTEM32\WINMM.DLL
61240000 0002C000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
730F0000 00169000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.1348_none_d94f9953e1060d01\GDIPLUS.DLL
77000000 00025000 C:\WINDOWS\System32\IMM32.DLL
72F70000 00074000 C:\WINDOWS\system32\uxtheme.dll
5B0E0000 000AB000 C:\Work\Errori\WebView\ramon\webview.dll
5E5C0000 00020000 C:\Work\Errori\WebView\ramon\WebView2Loader.dll
76AF0000 000D3000 C:\WINDOWS\System32\MSCTF.dll
74620000 0000F000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
750C0000 0005F000 C:\WINDOWS\System32\bcryptPrimitives.dll
63EE0000 000B9000 C:\WINDOWS\SYSTEM32\textinputframework.dll
61110000 0009B000 C:\WINDOWS\System32\CoreMessaging.dll
60E90000 0027E000 C:\WINDOWS\System32\CoreUIComponents.dll
75050000 00063000 C:\WINDOWS\System32\WS2_32.dll
60DB0000 000DB000 C:\WINDOWS\SYSTEM32\wintypes.dll
735D0000 00029000 C:\WINDOWS\SYSTEM32\ntmarta.dll
73290000 00053000 C:\WINDOWS\system32\Oleacc.dll
5ADE0000 002F1000 C:\Program Files (x86)\Microsoft\EdgeWebView\Application\98.0.1108.50\EBWebView\x86\EmbeddedBrowserWebView.dll
72E50000 0000A000 C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
Called from FWCALLDLL(0)
Called from WEBVIEW_CREATE(56) in ramon.prg
Called from CREATEWEBVIEW(26) in ramon.prg
Called from (b)MAIN(18) in ramon.prg
Called from TWINDOW:ACTIVATE(1083) in .\source\classes\WINDOW.PRG
Called from MAIN(18) in ramon.prg
------------------------------------------------------------------------
So it not run also on Windows 10
I tried also the last sample of Antonio , crashed !!!
I Insert the same file on "file:///c:/soporte/Ramon/test.html
- Code: Select all Expand view RUN
pplication Internal Error - C:\Work\Errori\WebView\sample\webview.Exe
Terminated at: 2022-02-16 18:01:29
Unrecoverable error 6005: Exception error:
Exception Code:C0000005 ACCESS_VIOLATION
Exception Address:65C4DCC9
EAX:00000000 EBX:00A891E8 ECX:00000000 EDX:00A9E410
ESI:65CCB56C EDI:00000000 EBP:0019EA04
CS:EIP:0023:65C4DCC9 SS:ESP:002B:0019E9FC
DS:002B ES:002B FS:0053 GS:002B
Flags:00010216
Exception Parameters: 00000000 00000000
CS:EIP: 8B 08 8B 51 0C 89 55 F8 83 7D 08 00 74 0B 8B 45
SS:ESP: 23001548 230A8120 0019EA28 72C31D2C 00A9E410 80010106 00000000 00000000 F4252824 80010106 00000000 0019EA5C 5DC891CE 00A891E8 80010106 00000000
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
65C4DCC9 0019EA04 0019EA28 72C31D2C 00A9E410 80010106 00000000 00000000 F4252824 80010106 00000000
72C31D2C 0019EA28 0019EA5C 5DC891CE 00A891E8 80010106 00000000 230A8120 0000002B 80000030 00000000 064355D9
5DC891CE 0019EA5C 0019EAB4 5DC890E2 00000000 00A98600 00000000 00A891E8 5DE72684 00000030 2303C300 00000035
5DC890E2 0019EAB4 0019EAF0 5DC3DBF3 00000000 00A98600 00000000 00A891E8 00000000 230A80C0 0000002B 80000030
5DC3DBF3 0019EAF0 0019EB14 72C3265D 00000001 00000000 00A98600 00000000 00A891E8 00A98600 00000000
72C3265D 0019EB14 0019EB50 72C31343 00AA8AE8 00000001 00000000 00A98600 00000000 00A891E8 0000006E 0000006E
72C31343 0019EB50 0019EB74 72C31D0A 00000000 00000000 00A891E8 230A80C0 F4252978 80010106 00000000
72C31D0A 0019EB74 0019EBA8 5DC891CE 00A891E8 80010106 00000000 230A80C0 0000002B 80000030 00000000 0643542D
5DC891CE 0019EBA8 0019EC00 5DC890E2 00000000 00A98600 00000000 00A891E8 5DE72684 00000030 0019EBE4 2303C240
5DC890E2 0019EC00 0019EC3C 5DC3DBF3 00000000 00A98600 00000000 00A891E8 00000000 230A8060 0000002B 80000030
5DC3DBF3 0019EC3C 0019EC60 72C3265D 00000001 00000000 00A98600 00000000 00A891E8 00A98600 00000000
72C3265D 0019EC60 0019EC9C 72C31343 00AA6250 00000001 00000000 00A98600 00000000 00A891E8 0000006E 0000006E
72C31343 0019EC9C 0019ED0C 72C3129C 00000000 00000000 00A891E8 65C50B56 0019EE04 0019ECD0 65C51528 00000000
72C3129C 0019ED0C 0019EF60 65C53588 00000000 00A98600 00000000 00A9E410 6168CF1B 0019EF70 00A85058 0019ED94
65C53588 0019EF60 0019F050 65C4995F 001606C4 00000000 65CCBCA0 65C4B87C 0019F030 00A894E8 0019F050 65C4990B
65C4995F 0019F050 0019F074 65C496D7 00000000 00836D9C 6168D00F 00A894E8 0019F858 65C8F0DD FFFFFFFF
65C496D7 0019F074 0019F098 65C41090 00000000 00836D9C 004FF0BC 00836D9C 0019F09C 00A894E8 00836D80
65C41090 0019F098 0019F0B0 00458021 00000000 00836D9C 00000000 005A71A0
00458021 0019F0B0 0019F0D8 004E3714 005A7435 00000000 00837E28 00000034 00000000 00E4773C 00000000 00000000
004E3714 0019F0D8 0019F1F8 004DD4C6 00000003 00000000 00000000 005A70B0 013AAD40 00000000 0000000C 00000000
Modules:
00400000 0046C000 C:\Work\Errori\WebView\sample\webview.Exe
77190000 001A3000 C:\WINDOWS\SYSTEM32\ntdll.dll
76710000 000F0000 C:\WINDOWS\System32\KERNEL32.DLL
75290000 00214000 C:\WINDOWS\System32\KERNELBASE.dll
73530000 0009F000 C:\WINDOWS\SYSTEM32\apphelp.dll
76E00000 0007A000 C:\WINDOWS\System32\ADVAPI32.DLL
76A30000 000BF000 C:\WINDOWS\System32\msvcrt.dll
76690000 00075000 C:\WINDOWS\System32\sechost.dll
762F0000 000BF000 C:\WINDOWS\System32\RPCRT4.dll
75E00000 000AF000 C:\WINDOWS\System32\COMDLG32.DLL
75510000 00281000 C:\WINDOWS\System32\combase.dll
76BF0000 00120000 C:\WINDOWS\System32\ucrtbase.dll
769A0000 00087000 C:\WINDOWS\System32\shcore.dll
74870000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
74810000 00019000 C:\WINDOWS\SYSTEM32\MPR.DLL
76800000 001A0000 C:\WINDOWS\System32\USER32.dll
76BD0000 00018000 C:\WINDOWS\System32\win32u.dll
754D0000 00024000 C:\WINDOWS\System32\GDI32.dll
75120000 000DC000 C:\WINDOWS\System32\gdi32full.dll
76500000 0007B000 C:\WINDOWS\System32\msvcp_win.dll
77030000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
732F0000 0008D000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.19041.1110_none_c0da534e38c01f4d\COMCTL32.DLL
757A0000 005B3000 C:\WINDOWS\System32\SHELL32.dll
763B0000 000E3000 C:\WINDOWS\System32\OLE32.DLL
75D60000 00096000 C:\WINDOWS\System32\OLEAUT32.DLL
73380000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
73260000 00028000 C:\WINDOWS\SYSTEM32\WINMM.DLL
6CC00000 0002C000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
730F0000 00169000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.1348_none_d94f9953e1060d01\GDIPLUS.DLL
74080000 00072000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
77000000 00025000 C:\WINDOWS\System32\IMM32.DLL
72F70000 00074000 C:\WINDOWS\system32\uxtheme.dll
65C40000 000AB000 C:\Work\Errori\WebView\sample\webview.dll
72C30000 00020000 C:\Work\Errori\WebView\sample\WebView2Loader.dll
76AF0000 000D3000 C:\WINDOWS\System32\MSCTF.dll
74620000 0000F000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
750C0000 0005F000 C:\WINDOWS\System32\bcryptPrimitives.dll
63EE0000 000B9000 C:\WINDOWS\SYSTEM32\textinputframework.dll
60E90000 0027E000 C:\WINDOWS\System32\CoreUIComponents.dll
61110000 0009B000 C:\WINDOWS\System32\CoreMessaging.dll
75050000 00063000 C:\WINDOWS\System32\WS2_32.dll
735D0000 00029000 C:\WINDOWS\SYSTEM32\ntmarta.dll
60DB0000 000DB000 C:\WINDOWS\SYSTEM32\wintypes.dll
73290000 00053000 C:\WINDOWS\system32\Oleacc.dll
5DC10000 002F1000 C:\Program Files (x86)\Microsoft\EdgeWebView\Application\98.0.1108.50\EBWebView\x86\EmbeddedBrowserWebView.dll
72E50000 0000A000 C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
Called from FWCALLDLL(0)
Called from WEBVIEW_CREATE(45) in webview.prg
Called from CREATEWEBVIEW(26) in webview.prg
Called from (b)MAIN(18) in webview.prg
Called from TDIALOG:INITIATE(864) in .\source\classes\DIALOG.PRG
Called from TDIALOG:HANDLEEVENT(1124) in .\source\classes\DIALOG.PRG
Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(304) in .\source\classes\DIALOG.PRG
Called from MAIN(18) in webview.prg
------------------------------------------------------------------------
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com