Grpahicslost()

Blitz3D Forums/Blitz3D Beginners Area/Grpahicslost()

pc_tek(Posted 2008) [#1]
Does this command still work?

I have inserted a...

if graphicslost() then stop

...in my code, but it just ignores it when screen rez is changed


GfK(Posted 2008) [#2]
??

Not sure that's ever been a function...


pc_tek(Posted 2008) [#3]
I found it in these forums somewhere and intended to use it...but the function is being ignored, even though it shows up in the IDE as a proper keyword.


GfK(Posted 2008) [#4]
Oh, turns out it was added in 1.99. Haven't used Blitz3D since about 3 years ago.

Anyway, make sure you have Debug enabled, otherwise the Stop will be ignored.

Try using If GraphicsLost() then RunTimeError("Stopped") instead, to confirm that it works.


pc_tek(Posted 2008) [#5]
I'm still in development, so the debug is always enabled.

However, your statement is working...cheers!


GfK(Posted 2008) [#6]
I could be wrong, but I suspect that Stop might have to be on a line of its own. Try:
If GraphicsLost()
  Stop
EndIf



pc_tek(Posted 2008) [#7]
Yeap, you are right...another strange one huh?


Moraldi(Posted 2008) [#8]
GraphicsLost is an undocumented command.