I've got DLL code that works when compiled with PB8, but crashes with PB9. After some putzing around, I've written the toy program below to demonstrate the problem.
It crashes only when PB9 has a graphic window open, it has focus, and the mouse wheel gets scrolled. As this is an EXE rather than a DLL, the observable effect is that the program just abruptly terminates mid loop. With my original DLL the effect is rather uglier.
I see this problem on two different machines, both running XP-Home. So my question is whether this is a known problem, and/or whether other people here can see the same effect on their hardware.
Thanks.
Bill
It crashes only when PB9 has a graphic window open, it has focus, and the mouse wheel gets scrolled. As this is an EXE rather than a DLL, the observable effect is that the program just abruptly terminates mid loop. With my original DLL the effect is rather uglier.
I see this problem on two different machines, both running XP-Home. So my question is whether this is a known problem, and/or whether other people here can see the same effect on their hardware.
Code:
#COMPILE EXE #DIM ALL %WinPelHt = 300 %WinPelWd = 400 FUNCTION PBMAIN () AS LONG GLOBAL hWin AS DWORD 'handle for a graphics window to use for console output. DIM I AS INTEGER GRAPHIC WINDOW "PB/DLL Optimization Routine", 0, 0, CLNG(%WinPelWd), CLNG(%WinPelHt) TO hWin GRAPHIC ATTACH hWin, 0 GRAPHIC FONT "Lucinda Console",10,1 FOR i = 1 TO 10 SLEEP 1000 GRAPHIC PRINT ("I =" & STR$(i)) NEXT i MSGBOX "Waiting for key..." GRAPHIC WINDOW END END FUNCTION
Bill
Comment