DisableDebugger: Invalid memory access

Just starting out? Need help? Post your questions and find answers here.
BarryG
Addict
Addict
Posts: 4166
Joined: Thu Apr 18, 2019 8:17 am

DisableDebugger: Invalid memory access

Post 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()
Last edited by BarryG on Sat May 03, 2025 11:57 am, edited 2 times in total.
Fred
Administrator
Administrator
Posts: 18178
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: DisableDebugger: Invalid memory access

Post by Fred »

There is no check on data, so that's the expected behaviour.
BarryG
Addict
Addict
Posts: 4166
Joined: Thu Apr 18, 2019 8:17 am

Re: DisableDebugger: Invalid memory access

Post 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. ;)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: DisableDebugger: Invalid memory access

Post 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.
quidquid Latine dictum sit altum videtur
BarryG
Addict
Addict
Posts: 4166
Joined: Thu Apr 18, 2019 8:17 am

Re: DisableDebugger: Invalid memory access

Post 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.
Post Reply