Grpahicslost()
Blitz3D Forums/Blitz3D Beginners Area/Grpahicslost()| 
 | ||
| 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 | 
| 
 | ||
| ?? Not sure that's ever been a function... | 
| 
 | ||
| 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. | 
| 
 | ||
| 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. | 
| 
 | ||
| I'm still in development, so the debug is always enabled. However, your statement is working...cheers! | 
| 
 | ||
| I could be wrong, but I suspect that Stop might have to be on a line of its own.  Try: If GraphicsLost() Stop EndIf | 
| 
 | ||
| Yeap, you are right...another strange one huh? | 
| 
 | ||
| GraphicsLost is an undocumented command. |