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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Application hangs when finished.

User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Application hangs when finished.

Post by salvadordf »

Try deleting the CloseBrowser call and let the application handle the destruction of TChromium when you close your app.
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Re: Application hangs when finished.

Post by Det20 »

I try that, of course. But with the same problem: Sometimes crash (in 30% of all times)
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Application hangs when finished.

Post by salvadordf »

Then you have to follow the destruction sequence from the second case.

Edit : Don't close your app until you receive the TChromium.OnBeforeClose event.
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Re: Application hangs when finished.

Post by Det20 »

Crash also happens without call "CreateBrowser". I use ASProtect, maybe this can be the problem?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Application hangs when finished.

Post by salvadordf »

I've never used ASProtect. I can't tell you if that's the cause of the crashes.
Det20
Posts: 38
Joined: Fri Mar 10, 2017 3:11 pm

Re: Application hangs when finished.

Post by Det20 »

I try to find the problem using a tool i wrote to automatically start the Application, navigate to a side, then stop and close the app.
I will post any News here.

=== Update 1 ===
It seems that, if an external application start/stop the Chromium-Application (WM_CLOSE Message or Mouse-Click-Simulation), everything is ok, no crash.
Post Reply