A strange error

BlitzMax Forums/BlitzMax Beginners Area/A strange error

Omni(Posted 2006) [#1]
All I have is a dummy program:

Graphics 640,480,16
WaitMouse
End

and it has an error window that pops up on execution which states:
"Unhandled Exception:CreateDevice Failed result=-2147024882"

I didn't spot this one in the wiki or anything. This is a fresh install of windows so maybe I'm missing an OpenGL update perhaps?


tonyg(Posted 2006) [#2]
What level of Bmax are you using?
The default driver changed so you either have no DX or no GL capability.


FlameDuck(Posted 2006) [#3]
This is a fresh install of windows so maybe I'm missing an OpenGL update perhaps?
Try DirectX. Either that or your computer simply does not support a 640x480x16 resolution. Or at least your drivers are preventing it for some reason.


Omni(Posted 2006) [#4]
FlameDuck, I'll try my native resolution now. Edit: Same error :/

I'd rather use OpenGL for compatibility reasons. After doing some reading I found you can switch to the OpenGL driver as the Windows version defaults to DirectX.

I read somewhere in another thread to use:
setgraphiscdriver glmax2ddriver()
however it comes up with a compile error.


tonyg(Posted 2006) [#5]
Which level of Bmax are you using?


Omni(Posted 2006) [#6]
I'm sorry... what do you mean by level?

Edit: If you mean version then the latest. I only downloaded it last night.


tonyg(Posted 2006) [#7]
What does Help / About tell you is the BlitzMax Release Version? Downloading should be followed by updating and then syncmodding. Have you done all these so your 'version' states 1.22?
<edit> Once you can confirm you're on the latest level then try...
setgraphicsdriver glmax2ddriver()
to see the results in OGL and 'Start / Run / dxdiag' to check your DX level.
If it still fails you need to give machine spec especially graphics card and driver level.


Dreamora(Posted 2006) [#8]
You mean what version?

and it is

setGraphicsdriver glmax2ddriver()

(c and s mixed)

if that isn't known as well, you are using an extremely outdated version and definitely need to update


Omni(Posted 2006) [#9]
Haha, it worked, Dreamora! I didn't even notice the typo. Proves even in a hurry I shouldn't be so lazy as to copy and paste without reading over.


tonyg(Posted 2006) [#10]
For the future be aware that valid commands get 'coloured'.