Disaster because it appears we can't trap for the error!
When creating a graphics resolution that is too large to create surface areas in VRAM, Blitzmax just exists. No trapping, or nothing. When working in the IDE with the console window up, the console window displays this message (in Dx mode):
DXERROR err=UNKNOWN:-2005531925 747
To replicate this error all you have to do is create a full screen resolution too high for your GPU to create vram surfaces. This means your monitor has to support it for normal desktop use, but when a game uses it for page flipping, etc, there's not enough vram available. Happens in both OpenGL and DirectX modes.
My desktop runs 1680x1050 no problem, but of course in a game situation, this requires a ton of Vram space which my crappy card does not have, that's how I found this bug.
Would be nice if we would trap for this, because alot of programmers are using desktop resolutions for their default game resolution and if desktop res requires too much vram, it will trigger this bug and the program will just exit. No bombs, no crashes, just stops running.
Can others please try to replicate the problem?
When creating a graphics resolution that is too large to create surface areas in VRAM, Blitzmax just exists. No trapping, or nothing. When working in the IDE with the console window up, the console window displays this message (in Dx mode):
DXERROR err=UNKNOWN:-2005531925 747
To replicate this error all you have to do is create a full screen resolution too high for your GPU to create vram surfaces. This means your monitor has to support it for normal desktop use, but when a game uses it for page flipping, etc, there's not enough vram available. Happens in both OpenGL and DirectX modes.
My desktop runs 1680x1050 no problem, but of course in a game situation, this requires a ton of Vram space which my crappy card does not have, that's how I found this bug.
Would be nice if we would trap for this, because alot of programmers are using desktop resolutions for their default game resolution and if desktop res requires too much vram, it will trigger this bug and the program will just exit. No bombs, no crashes, just stops running.
Can others please try to replicate the problem?
SetGraphicsDriver D3D7Max2DDriver() 'SetGraphicsDriver GLMax2DDriver() Global Ok:Int ' ok = GraphicsModeExists(1680,1050,32,0) ' If ok If Graphics(1680,1050,32,0) = Null Print "Error creating Graphics Screen!" ' <<< never gets trapped! End EndIf Else Print "Mode Not Available" EndIf