I have an odd intermittent failure that occurs only under certain circumstances , that I have problems with solving the problem, and I am looking for SO advice on how to solve it.
Mistake
At clearly random points, Windows indicates that the "[App] has stopped working." This is APPCRASH in the ntdll.dll file, exception code 4000001f, exception 000a2562. Here, where it becomes difficult: this only happens when the application starts under the debugger. However, the debugger will not catch this exception, and the moment the Windows displays this dialog box, the IDE does not respond. This error does not occur during normal operation, that is, not in the IDE debugger.

I canβt play it outside the debugger, so I canβt start the program and attach it when it has already crashed. I cannot pause execution when Windows displays this dialog box because the IDE is not responding. I can manually trace the lines of code to see where this happens. There are several of them, and where this seems to be random. For some time this happened when showing a window (or a new form) for a while when creating a stream.
Edit: I tracked it to the IDE: if I stop at the breakpoint and go to the "Theme Status" tab, the program will immediately work using the above dialog, although this is theoretically suspended. In this situation, the IDE remains responsive. This is really weird.
Additional Information
I just migrated my development environment to VMWare Fusion . The error also occurs when starting the build from my old (native Windows) computer on my new computer; this did not happen with the same exe file on this old computer. This makes me wonder if this is related to Fusion or something in my new setup.
I run:
- Windows 7 Pro x64 on WMWare Fusion 3.1.3 on OSX Lion 10.7.1, all fully updated. Fusion works in Full Screen mode on one of my screens.
- An employee running Windows 7 (not in a virtual machine) does not encounter this problem. I am also not on my old Vista computer.
- Embarcadero RAD Studio 2010, completely updated (I hope there are about five updates and all of them are in order difficult). I have DDevExtensions 2.4.1 installed, as well as the latest IDE fix pack: deleting both of these files has no effect.
- The application is written mainly in C ++, with Delphi fragments. It is 32-bit.
- We use EurekaLog , but the exception is not caught either. (Typically, the exception would be caught first by the debugger, then by EurekaLog.)
- Performing a debug build (without EurekaLog, additional debugging information, etc., DCU debugging set to true) also plays it. However, the "Debug DCUs" option on the "Delphi Binding" page of the C ++ Builder Project Settings dialog box has no effect - I cannot enter the VCL code and find the line that actually causes the error.
- Codeguard (which detects memory access errors, double releases, free memory access, buffer overflows, etc.) reports nothing.
delphi vmware-fusion crash c ++ builder
David m
source share