Page 1 of 1

Application in release mode crashes

Posted: Sat Aug 01, 2020 5:35 pm
by PioPio
Hello Salvador,

I have made a modified version of DOMVisitor. If I compile it in Debug mode the application works fine, if I compile in Release mode the application crashes after opening the page.
I know this is a vague description of the issue but I really don't know where to look at. Do you have any suggestion ?

I have Delphi XE2, the settings are the same for both, debug and release, there are no {$IFDEF DEBUG}...{$ENDIF} and GlobalCEFApp.SingleProcess is set to false.


Many thanks
Alberto

Re: Application in release mode crashes

Posted: Sat Aug 01, 2020 6:10 pm
by salvadordf
PioPio wrote: Sat Aug 01, 2020 5:35 pm I have made a modified version of DOMVisitor. If I compile it in Debug mode the application works fine, if I compile in Release mode the application crashes after opening the page.
It's very difficult to guess what's going on without the source code. A crash after opening the page is very unusual.

Try enabling "optimization" in the "Compiler" section of the "debug" build settings to see if some interface was released prematurely.

Even in "release" builds you should get the call stack in Delphi that could give you clues.

If all that fails you can always enable the CEF debug log and add some log entries on the code and events executed before and after the page is loaded.