i get a hb_out.log in my HB_FUNC() when using under Fivewin 64 Bit (MSVC)
- Code: Select all Expand view RUN
- HB_FUNC( DEVICECHANGEINFO ) // DeviceChangeInfo( wParam, lParam )
{
// WPARAM wParam = hb_parnl( 1 );
#ifndef _WIN64
LPARAM lParam = (LPARAM) hb_parnl (2);
#else
LPARAM lParam = (LPARAM) hb_parnll (2);
#endif
PDEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR) lParam ; // hb_parnll( 2 );
// TCHAR szMsg[80];
if ( lpdb->dbch_devicetype == DBT_DEVTYP_VOLUME )
{
PDEV_BROADCAST_VOLUME lpdbv = (PDEV_BROADCAST_VOLUME) lpdb;
hb_retnl( lpdbv->dbcv_unitmask );
} else hb_retnl( 0 );
}
it does work under HMG 64 / 32 Bit but under Fivewin only 32 Bit. 64 Bit Version crash
Application Internal Error - C:\fwh64\0\TGRID\DUALGRID.exe
Terminated at: 2023-02-23 07:04:09
Nicht zu behebender Fehler 6005: Exception error:
Exception Code:C0000005 ACCESS_VIOLATION
Exception Address:00007FF62CAD205E
RAX:FFFFFFFFBCFFF470 RBX:0000000000000400 RCX:0000000000000002 RDX:0000000000000002
RSI:0000000000000000 RDI:0000000000000000 RBP:00007FF62CF24000
R8 :0000023CF1A4DF30 R9 :00007FF62CF25BA0 R10:0000023CF1A4DF50 R11:000000000000FFFF
R12:0000000000000001 R13:0000000000000002 R14:00007FF62CCFA1B9 R15:0000000000000000
CS:RIP:0033:00007FF62CAD205E SS:RSP:002B:00000078BCFFEA90
DS:002B ES:002B FS:0053 GS:002B
Flags:00010206
Exception Parameters: 0000000000000000 FFFFFFFFBCFFF474
Called from DEVICECHANGEINFO(0)
Called from ONDEVICECHANGE(1921) in DUALGRID.PRG
Called from (b)MAIN(789) in DUALGRID.PRG
Called from TWINDOW:ONDEVICECHANGE(0) in .\source\classes\WINDOW.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from _FWH(0) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(0) in .\source\classes\WINDOW.PRG
Called from MAIN(796) in DUALGRID.PRG
------------------------------------------------------------------------
p.s. it is when add/remove USB-Stick