Main forum > Bug Reports

Error ......

(1/2) > >>

Hb!:
umm maybe this cannot be considered as a bug, its more like a stupid thing i did ... During the usage of Gl suddenly weird error messages appeared( i compiled it worked fine and then windows started telling me " This program is not responding bla bla bla..." and then after a while  something of video card error appeared....) do you know why is happening ? does it have something to do with limit fps command?
cause that has been the one ive been using a lot... maybe i exceeded
 the number... do i didn't use more than 100...

Kitty Hello:
Should not be. Can you provide a sample to reproduce the error?

Hb!:
problem solved.... seems to be that its related with closing the compiled game... instead of closing , i've simply stopped the game and thats all, it closes and no error happens.

Hb!:
no sorry that helps out while im using the compiler... but the .exe file has the same error so here's  the code...

--- Code: (glbasic) ---LIMITFPS 6
GETSCREENSIZE sx, sy
LOADBMP "shrine.bmp"

LOADSPRITE "mai.bmp",1
LOADSPRITE "mai2.bmp",2
LOADSPRITE "mai3.bmp",3
LOADSPRITE "mai4.bmp",4
LOADSPRITE "mai5.bmp",5
LOADSPRITE "mai6.bmp",6
LOADSPRITE "mai7.bmp",7
LOADSPRITE "mai8.bmp",8
LOADSPRITE "mai9.bmp",9
LOADSPRITE "mai10.bmp",10
LOADSPRITE "mai11.bmp",11
LOADSPRITE "mai12.bmp",12
LOADSPRITE "mai13.bmp",13
LOADSPRITE "mai14.bmp",14
LOADSPRITE "mai15.bmp",15
LOADSPRITE "mai16.bmp",16
LOADSPRITE "mai17.bmp",17
LOADSPRITE "mai18.bmp",18
LOADSPRITE "mai19.bmp",19

DRAWSPRITE 1, -20, 250
SHOWSCREEN

DRAWSPRITE 2, -20, 250
SHOWSCREEN

DRAWSPRITE 3, -20, 250
SHOWSCREEN

DRAWSPRITE 4, -20, 250
SHOWSCREEN

DRAWSPRITE 5, -20, 250
SHOWSCREEN

DRAWSPRITE 6, -20, 250
SHOWSCREEN

DRAWSPRITE 7, -20, 250
SHOWSCREEN

DRAWSPRITE 8, -20, 250
SHOWSCREEN

DRAWSPRITE 9, -20, 250
SHOWSCREEN

DRAWSPRITE 10, -20, 250
SHOWSCREEN

DRAWSPRITE 11, -20, 250
SHOWSCREEN

DRAWSPRITE 12, -20, 250
SHOWSCREEN



WHILE TRUE
IF  KEY(200)
   DRAWSPRITE 13, -20, 250
   SHOWSCREEN
   DRAWSPRITE 13, -20, 230
   SHOWSCREEN
   DRAWSPRITE 13, -20, 210
   SHOWSCREEN
   DRAWSPRITE 13, -20, 180
   SHOWSCREEN
   DRAWSPRITE 13, -20, 160
   SHOWSCREEN
   DRAWSPRITE 14, -20, 160
   SHOWSCREEN
   DRAWSPRITE 14, -20, 180
   SHOWSCREEN
   DRAWSPRITE 14, -20, 210
   SHOWSCREEN
   DRAWSPRITE 14, -20, 230
   SHOWSCREEN
   DRAWSPRITE 14, -20, 240
   SHOWSCREEN
   IF KEY(30)
   DRAWSPRITE 15, -20, 259
   SHOWSCREEN
   DRAWSPRITE 16, -20, 259
   SHOWSCREEN
   DRAWSPRITE 17, -20, 259
   SHOWSCREEN


   DRAWSPRITE 18, -20, 259
   SHOWSCREEN
   ELSE
   DRAWSPRITE 14, -20, 250
   SHOWSCREEN
   DRAWSPRITE 18, -20, 250
  SHOWSCREEN

   ENDIF
   ENDIF
   WEND
MOUSEWAIT
--- End code ---
by the way  the error of the card only appeared once not every time the game is compiled.

Please could someone tell me how to get rid of this problem?

Kitty Hello:
The WHILE TRUE/WEND loop has no SHOWSCREEN in it, when you don't press the key(200).
That's bad. SHOWSCREEN does a lot more than show the screen.
It's responsible for everything you do with the window, too (thus, you can't close it)

Navigation

[0] Message Index

[#] Next page

Go to full version