Page 1 of 1

Free GlobalCEFApp when terminating debug session

Posted: Thu Jun 29, 2017 4:40 pm
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?

Re: Free GlobalCEFApp when terminating debug session

Posted: Thu Jun 29, 2017 4:58 pm
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.

Re: Free GlobalCEFApp when terminating debug session

Posted: Fri Jun 30, 2017 10:00 am
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!