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