Page 2 of 2
Re: Application hangs when finished.
Posted: Wed Nov 15, 2017 2:49 pm
by salvadordf
Try deleting the CloseBrowser call and let the application handle the destruction of TChromium when you close your app.
Re: Application hangs when finished.
Posted: Wed Nov 15, 2017 2:52 pm
by Det20
I try that, of course. But with the same problem: Sometimes crash (in 30% of all times)
Re: Application hangs when finished.
Posted: Wed Nov 15, 2017 2:55 pm
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.
Re: Application hangs when finished.
Posted: Wed Nov 15, 2017 3:03 pm
by Det20
Crash also happens without call "CreateBrowser". I use ASProtect, maybe this can be the problem?
Re: Application hangs when finished.
Posted: Wed Nov 15, 2017 3:21 pm
by salvadordf
I've never used ASProtect. I can't tell you if that's the cause of the crashes.
Re: Application hangs when finished.
Posted: Thu Nov 16, 2017 3:26 pm
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.