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

Post Reply
voltov
Posts: 14
Joined: Tue Jun 13, 2017 11:01 am

Free GlobalCEFApp when terminating debug session

Post by voltov »

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

Re: Free GlobalCEFApp when terminating debug session

Post by salvadordf »

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.
voltov
Posts: 14
Joined: Tue Jun 13, 2017 11:01 am

Re: Free GlobalCEFApp when terminating debug session

Post by voltov »

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