Hi,
I'm working on application that is using GlobalCEFApp. When debugging, I kill the application using Ctrl+F2 - the debug session stops, but another instance of application is immediately started. This does not occur in demo projects and I can't figure out the difference, it seems to me that I'm doing everything same as in demo apps.
It's not a big issue, but I'm very curious about this. Any hints?
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.
Free GlobalCEFApp when terminating debug session
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Free GlobalCEFApp when terminating debug session
Hi,
I checked again several CEF4Delphi demos and I can't reproduce your problem.
Maybe you are calling the GlobalCEFApp.StartMainProcess function without the "if...then" clause.
I checked again several CEF4Delphi demos and I can't reproduce your problem.
Maybe you are calling the GlobalCEFApp.StartMainProcess function without the "if...then" clause.
Re: Free GlobalCEFApp when terminating debug session
I was creating GlobalCEFApp long after Application was initialized and run. Sometime when I "clicked a button".
Now I moved creation logic into .dpr, exactly how in demo apps. It worked. Now my application is not duplicated when debug session is terminated. For now it's ok, with time I will try to investigate
Thank you for looking into this and such fast response!
Now I moved creation logic into .dpr, exactly how in demo apps. It worked. Now my application is not duplicated when debug session is terminated. For now it's ok, with time I will try to investigate

Thank you for looking into this and such fast response!