Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Application in release mode crashes

Post Reply
PioPio
Posts: 42
Joined: Sun Nov 05, 2017 10:25 pm

Application in release mode crashes

Post 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
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Application in release mode crashes

Post 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.
Post Reply