I have a program that I've written using Ultimate++
Normally, if I compile in debug mode and run in the debugger, then if an error or exception occurs it will jump me to that point in the file and tell me what line and what problem, which is extremely effective.
Recently, it's been crashing and the error that it gives me isn't traceable back in code. It simply says "Read error at 0xHEXHEXHEX" (paraphrasing of course) and the debugger will not jump me to a line.
It's a multi-threaded application, and each thread has access to a global data array to pass information from one thread to the next. So, there could be a case of one writing and one reading to the same place at the same time which is what I assume is happening.
Since it won't tell me what line, or what error etc then I have no way to fix it. Is there something else that I can do, debugging wise, to figure out where my program is crashing? If I figure out what line it is, then I'm sure I can do something to fix it.
My first thought was to write something that, on every line of code, it saves the line number to a file that way when it crashes I'll know what line it crashed on..but I would assume that this would be way too HDD or processor intensive. What else could I possibly do?? I'm pretty frustrated here, so top points to absolutely anybody who can help me through this.