If I were the thread-safe mode for the Exe on, get this code is always an error in the debugger and when I wrote this off then a WIN-error when I use the ALT-TAB to go out screen, wants one could tell me why?
[ERROR] FlipBuffers()
[ERROR] Invalid memory access. (read error at address 64)
Code: Select all
InitSprite()
InitSprite3D()
InitKeyboard()
InitMouse()
OpenScreen(1024, 768, 32, "Screen")
CreateSprite(1,64,64, #PB_Sprite_Texture)
CreateSprite3D(1, 1)
Repeat
FlipBuffers()
If IsScreenActive()
ClearScreen(0)
Start3D()
DisplaySprite3D(1,64,64)
Stop3D()
StartDrawing(ScreenOutput())
DrawingMode(1)
DrawText(0,0,"Test", $FFFFFF)
StopDrawing()
ExamineMouse()
ExamineKeyboard()
If KeyboardPushed(#PB_Key_Escape) : End : EndIf
EndIf
ForEver
Win XP SP3
PB 4.30 x86