On Wednesday, 5 November 2014 at 11:39:21 UTC, Marc Schütz wrote:
On Wednesday, 5 November 2014 at 11:09:42 UTC, Bauss wrote:
Is there any way to track down access violations, instead of
me having to look through my source code manually.
I have a pretty big source code and an access violation
happens at runtime, but it's going to be a nightmare looking
through it all to find the access violation. Not to mention
all the tests I have to run.
So if there is a way to catch an access violation and find out
where it occured it would be appreciated!
If you're on Linux, you can turn SEGVs into Errors:
import etc.linux.memoryerror;
registerMemoryErrorHandler();
I am on Windows, but thanks that might come in handy when I have
to test my program on other platforms.