Announcement

Collapse
No announcement yet.

Problem with GfxTools under Vista

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with GfxTools under Vista

    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:
    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
    
    How to fix this ?
    Aldo Vitagliano
    alvitagl at unina it

  • #2
    Aldo --

    That program runs fine on my Vista system, and (for what it's worth) nobody has reported any Graphics Tools problems related to Vista. In fact we haven't found an actual GT bug in over four years now.

    This issue may be specific to your user's graphics card/driver (for example it might be rejecting your request for a nonstandard 81-column console), or it could be a number of other things.

    Rather than go back and forth with various questions/tests here, please contact me at [email protected] and we'll figure it out. For lurkers, I'll post the final results here, when we are done.

    -- Eric Pearson, Perfect Sync, Inc.
    "Not my circus, not my monkeys."

    Comment


    • #3
      OK Eric, thanks. I did as you suggested.

      Nevertheless, I believe it will be helpful if members of the PB Forum could try the sample code and report whether or not they see the problem.
      Regards
      Aldo Vitagliano
      alvitagl at unina it

      Comment

      Working...
      X