My Delphi application raises an access violation error even before running. I made a break-point at Application.Initialize line, but my app doesn’t run and I still get the exception. How can I find the issues?
My Delphi application raises an access violation error even before running . I made
Share
The unit initialization section is the code that runs before
Application.Initializeexecutes. That’s the code that is in theinitializationsections at the bottom of a unit.So you would appear to have an error in that code. Most likely it will be in one of your own units. The thing to do is to run under the debugger and see which unit the debugger breaks at. Make sure your IDE is configured to break when access violations occur.
I’d also recommend enabling Debug DCUs in case the exception surfaces in one of the RTL/VCL units.