[Implemented] More information for "Invalid memory access"

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[Implemented] More information for "Invalid memory access"

Post by Trond »

It would be good if the debugger could give some more information than simply "invalid memory access". For example what address and module tried to access what access.

I am wrestling with some threads in dlls at the moment (so far the threads are winning) and "someone" are stealing my linked lists. Apparently at a ProcedureReturn but probably at some different place in my code.
Ollivier
Enthusiast
Enthusiast
Posts: 281
Joined: Mon Jul 23, 2007 8:30 pm
Location: FR

Post by Ollivier »

Yes it's a good idea!

Now, I need to know if the memory access into an adress is valid or invalid.
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Hello and Yes I agree that would be a great idea...

Maybe it will be done one day soon :wink:
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

It is implemented for the next beta. Displays the address and if it was a read or a write.
This is Windows only though. Dunno if i can get this info on the other OS.
quidquid Latine dictum sit altum videtur
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

good news so far. :D

...I'm sure on the other OSs the information is somewhere there, too.

seems you have to crawl your way though some API-dungeons...
*me hands a Torch and a Sword to freak* carry on... ;)
oh... and have a nice day.
Ollivier
Enthusiast
Enthusiast
Posts: 281
Joined: Mon Jul 23, 2007 8:30 pm
Location: FR

Post by Ollivier »

2Freak

Thanks! I didn't see your answer very early... I'll often use this new functionality. It allows a program staying stable during a scan for example.
Post Reply