Page 1 of 1
DisableDebugger: Invalid memory access
Posted: Sat May 03, 2025 2:10 am
by BarryG
Get this error with both PureBasic 6.10 (x64) and 6.21 Beta 8 (x64):
Code: Select all
DisableDebugger ; Invalid memory access
Procedure test()
Repeat
Read.s a$
ForEver
EndProcedure
test()
Re: DisableDebugger: Invalid memory access
Posted: Sat May 03, 2025 6:37 am
by Fred
There is no check on data, so that's the expected behaviour.
Re: DisableDebugger: Invalid memory access
Posted: Sat May 03, 2025 11:00 am
by BarryG
Oh, I see. I thought the error was for the "DisableDebugger" command, because that's what gets highlighted by the IDE for the error (not the "Read" line). Maybe this report can be for the actual error line to be highlighted, then.

Re: DisableDebugger: Invalid memory access
Posted: Sat May 03, 2025 11:35 am
by freak
BarryG wrote: Sat May 03, 2025 11:00 amMaybe this report can be for the actual error line to be highlighted, then.

No it can't because you disabled the debugger which is tracking these kinds of things. That is why it shows the last line when the debugger was still on.
Re: DisableDebugger: Invalid memory access
Posted: Sat May 03, 2025 11:56 am
by BarryG
freak wrote: Sat May 03, 2025 11:35 amThat is why it shows the last line when the debugger was still on
Ahhh... so
that's why that happens! Thanks for explaining.