When Im trying to put some graphics on my second canvas, but it crash with a DX error. Blitz+ could without issues, but why can BlitzMax not?
For my side this may should been moved to BlitzMax bug, if this is a bug.
Global Data, X, Y, Do$ Global Refresh:TGadget Global TimeLine:TGadget Global ShowG:TGraphics Global TimeLineG:TGraphics Local wx=ClientWidth(Desktop())/2-1024/2 Local wy=ClientHeight(Desktop())/2-768/2 Local Window:TGadget=CreateWindow("Test", wx, wy, 1024, 768, Null, WINDOW_TITLEBAR | WINDOW_MENU | WINDOW_STATUS | WINDOW_CLIENTCOORDS) Show=CreateCanvas(224, 0,800,600,Window,0) TimeLine=CreateCanvas(244,600,0,160,Window,0) ShowG=CanvasGraphics(Show) TimeLineG=CanvasGraphics(TimeLine) SetGraphicsDriver D3D7Max2DDriver() Repeat SetGraphics ShowG SetClsColor(0, 0, 0) Cls() ' HUNC on the secound canvas????? BUG? (DXERROR err=UNKNOWN:-2147024809 87) ' How do I create multiply canvas and draw on them without crash? SetGraphics TimeLineG SetClsColor(255, 255, 255) Cls() Flip 1 Forever
For my side this may should been moved to BlitzMax bug, if this is a bug.