Crash!!!!

BlitzMax Forums/BlitzMax Programming/Crash!!!!

Caton(Posted May) [#1]
https://www.youtube.com/watch?v=rO5HQeM6FFY
please help!
thanks.
I even redownloaded and installed blitzmax.


kfprimm(Posted May) [#2]
Your code is bad. Your loop isn't doing anything. It's just pegging the CPU.

Add a KeyDown or AppTerminate in there.


Caton(Posted May) [#3]
I did have one and it still crashed, I just added that code to test it.
everytime I add the gfx command it, freezes and crashes


Caton(Posted May) [#4]
I don't understand it was not working before but now it does?
Graphics 800,600,32
While Not AppTerminate()
Wend
EndGraphics
End


How do I set depth without full screen?


xlsior(Posted May) [#5]
How do I set depth without full screen?


IIRC in windowed mode you'll inherit whatever screen depth of the desktop itself is.


Midimaster(Posted May) [#6]
Your main loop eats all performance of the computer. Windows itself need some time to do its things. But with your app windows cannot scan keyboard, etc.

Use (and start always new projects) with this minimum code
Superstrict
Graphics 800,600
Global FPS:TTimer=CreateTimer(60)
While Not AppTerminate()
    Cls
    Flip 0
    WaitTimer FPS
Wend
End


You cannot set DEPTH without fullscreen. Depth is given by windows as long as you share the graphic device with other apps. By default the DEPTH is 32bit. No need to change it