SetGraphicsDriver & canvas error into my code

BlitzMax Forums/BlitzMax GUI Programming/SetGraphicsDriver & canvas error into my code

Hi !
bmax give me an error at the 'flip' line. Should be a relation with SetGraphics CanvasGraphics(cavCanvas0) ! Could you help me ?
Thanks !!!

Global Win0:TGadget
Global btnButton0:TGadget
Global cavCanvas0:TGadget

Win0=CreateWindow("title",(GadgetWidth(Desktop())-358)/2,(GadgetHeight(Desktop())-260)/2,358,260,Desktop(),WINDOW_TITLEBAR|WINDOW_HIDDEN)
	btnButton0=CreateButton("Lauch game ",176,200,160,24,Win0,BUTTON_PUSH)
	cavCanvas0=CreateCanvas(10,10,330,90,Win0)

'-mainloop--------------------------------------------------------------

Global paintTimer:TTimer=CreateTimer(60)

ShowGadget Win0

Repeat
	Select WaitEvent()
		Case EVENT_GADGETACTION						
		
			Select EventSource()
			
				Case btnButton0	
				
					Exit
		
			End Select			
			
		Case EVENT_TIMERTICK
			SetGraphics CanvasGraphics(cavCanvas0)
			Cls			
			SetColor 255,255,255
			DrawText "test",0,0
			Flip
			
		Case EVENT_WINDOWCLOSE						
			End
			
	End Select
Forever

HideGadget Win0

SetGraphicsDriver D3D7Max2DDriver()
Graphics 1024 , 768 , 32 , 75
Cls
DrawText "kikou" , 0 , 0
Flip
WaitKey()


works fine here
no problem

Works for me as well.
When reporting problems it's worth saying what the error is that you get.


When reporting problems it's worth saying what the error is that you get.

"unhandled memory error" (debug mode, stopped at the flip line)

note :

- i've not this bug with openGL (using SetGraphicsDriver GLMax2DDriver()).
- i've not the bug into dx, if i remove all the code relative to the canvas.

Video card RADEON9200 SERIES, DirectX 9.0c, amd athlon xp2600+, (video driver: 6.14.10.6614) WinXP SP1

please report here if you are also this bug !!!!

run perfectly.
GeForce 6600gt, Direct X 9.0c

*bump*

i've always this bug. is somebody have experimented this with its config ???

No problem here. What version of BM? Have you syncmods with maxgui?

i'm idiot. i've re-installed my os without update bmax... no pb with the last version.