Noob: How Would I Trap This DX Error?

BlitzMax Forums/BlitzMax Beginners Area/Noob: How Would I Trap This DX Error?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Still no luck...

SetGraphicsDriver D3D7Max2DDriver()
'SetGraphicsDriver GLMax2DDriver()
Global Ok:Int
'
ok = GraphicsModeExists(1680,1050,32,0)
'
If ok
 If Graphics(1680,1050,32,-1) = Null
  Print "Error creating Graphics Screen!" ' <<< never gets trapped!
  End
 EndIf
Else
 Print "Mode Not Available"
EndIf