jassing wrote:Trond wrote:Apart from that I can't help you, as it seems the error is in a different part of the program.
Trond wrote:
That's two ways a program bug "disappears" in some situations.
It's 100% of the time -- if it were a paging issue -- I'd expect to see the issue randomly.
It's not a "paging issue" in that paging is working correctly, it just doesn't catch all errors. I'd expect the problem to be just like this. But it can also happen in reverse (runs only correct with debugger), then it's a real nightmare.
But each and everytime I call that api with verified proper parameters, it crashes in the ide - never in the runtime. This is on hundreds of test runs. Verified on 3 computers.
But not when you only run the snippet, right? So obviously some other part of the program is ruining the environment.
jassing wrote:
Trond wrote:Edit: What I do when I have a mystic error like this, is to make a copy of the whole project, then deleting large portions of the program until the problem disappears.
Looks like that's my next step since I can't get the external debugger working...
Thanks for the advice.
-j
I still have no clue why you want to use the external debugger and why you're unable to select "standalone debugger" and press F5... What you get then IS the "external" or "standalone" debugger.
As a third option, just to prove the IDE is totally unrelated to this, you could try this:
1. Check "create temporary executable in source directory"
2. Enable the debugger and run from the IDE. Quit.
3. You now have an exe file in the source directory which is your program compiled with the debugger. The program can be ran directly from windows explorer with a double click. Since it was compiled with debugger, but it's not ran from the IDE nor with the standalone debugger, it will use a console debugger. You don't need to use the console debugger, just run the program to verify that it still crashes, even though you didn't run it from the IDE.
Edit: I need a clarification. When you disable the debugger and run it from the IDE, does it still crash? Or only with the debugger enabled.