An user of my software pointed out a severe problem arising under Vista (everything is OK under XP, where I developed the software).
To make it short, I could reproduce the problem and then I squeezed it in the following short and simple sample code.
When a key is pressed or mouse is clicked, the graphic window is cleared and a circle of random radius is drawn, BUT ... under Vista if a mouse button is clicked the program hangs. :confused2:
How to fix this ?
To make it short, I could reproduce the problem and then I squeezed it in the following short and simple sample code.
When a key is pressed or mouse is clicked, the graphic window is cleared and a circle of random radius is drawn, BUT ... under Vista if a mouse button is clicked the program hangs. :confused2:
Code:
$INCLUDE "C:\GFXTOOLS\GFXT_STD.INC"
$INCLUDE "C:\CONTOOLS\CT_STD.INC"
FUNCTION PBMAIN()
ConsoleToolsAuthorize %MY_CT_AUTHCODE
GraphicsToolsAuthorize %MY_GFXT_AUTHCODE
InitConsoleTools hCurInst&, 0, 0, 2, 0, 0
MOUSE 3, DOWN: MOUSE ON
CONSOLE SCREEN 25,81: SLEEP 300
GR& = ConsoleGfx(1,1,81,25)
R& = GfxWindow(%GFX_SHOW)
DO
GfxCLS
RADIUS&=RND*200
DrawFrom 512,256
DrawCircle RADIUS&
V$=""
DO WHILE V$=""
V$=INKEY$
LOOP
IF V$=CHR$(27) THEN EXIT FUNCTION
LOOP
END FUNCTION
Comment