HI Paul
I am getting some odd behaviour with the %WB control. it reads and displays the test web page as expected. when i press the [OK] button the program crashes. the feedback message seem to refer to the button (%bt) but it works without issue if i comment out the %wb line it crashes on win xp & 10 Steve
SUBROUTINE WEB_READ_TEST
IMPLICIT NONE
INCLUDE 'windows.inc'
CHARACTER*256 FPATH
INTEGER LF, LENGU
FPATH = 'http://epsassets.manchester.ac.uk/medialand/' //
+ 'cpi/vol1/software/cpi_ver_num.htm'
c actual length not LEN() LF = LENGU(FPATH) c lf= 76
IWIN = WINIO@('%ca[Web file read test]&')
IWIN = WINIO@('%60.20wb[' // FPATH(1:LF) // ']&')
IWIN = WINIO@('%ff&')
IWIN = WINIO@('%bt[OK]&')
IWIN = WINIO@('%ff')
END
Runtime error from program:c:\apps_cpi\bin\sprint.exe Access Violation The instruction at address 0e6a4523 attempted to read from location 00000000 0e6a3da1 constructed_button_procedure@16#70 [+0782] 7e418734 routine at address 7E418734 [+0000] 7e418816 routine at address 7E418816 [+0000] 7e428ea0 routine at address 7E428EA0 [+0000] 7e428eec routine at address 7E428EEC [+0000] 7c90e473 routine at address 7C90E473 [+0000] 7e4196c7 routine at address 7E4196C7 [+0000] 0e638706 __yield_program_control [+0221]
eax=ef011180 ebx=0000000f ecx=0e5fd1c4 edx=7c90e514 esi=0e6a3da1 edi=00000000 ebp=0e5fd260 esp=0e5fd1d4 IOPL=0 ds=0023 es=0023 fs=003b gs=0000 cs=001b ss=0023 flgs=00010216 [NC EP NZ SN DN NV]
0e6a4523 mov ecx,[edi] 0e6a4525 cmp ecx,[ebp-0x20] 0e6a4528 jnle e6a4388