Written in the memory - PB561 Win x64

Just starting out? Need help? Post your questions and find answers here.
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Written in the memory - PB561 Win x64

Post by walbus »

Written in the memory - PB561 Win x64

It should output a error message

Code: Select all

Define window_ID=OpenWindow(#PB_Any, 0, 0, 500, 600, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Define canvas_ID=CanvasGadget(#PB_Any, 0, 0, WindowWidth(window_ID), WindowHeight(window_ID))

Define text$="This is a test text  "+#LF$+ ; ######################### This Line overwritten the memory ####################

StartDrawing(CanvasOutput(canvas_ID))
 DrawText(0, 0, text$)
StopDrawing()

While WaitWindowEvent()<>#PB_Event_CloseWindow : Wend
Fred
Administrator
Administrator
Posts: 16621
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Written in the memory - PB561 Win x64

Post by Fred »

This is not a bug, it just concatenate the StartDrawing() result to your chain, which is what is expected (even if it looks weird here).
Post Reply