Page 1 of 1

Ctrl F2 when debugging a program using CEF4Delphi

Posted: Mon Dec 02, 2024 6:24 am
by KenS
OK, I understand CEF4Delphi creates a duplicate of my exe (don't know why but know it does).

Scenario: working in Delphi making changes and testing to my email program.

My "production" version of email is also running.

Ok, I get to some point in my development version, stopped at some breakpoints, stepping through code, and realize there is a problem in my code. I am ten levels deep in routine calls so just reset, Ctrl F2.

In the past, occasionally I could not re-compile (cannot create exe). Lately it seems to happen almost every time, so I have to kill the exe from TaskMan. With the live version running it is hit or miss.

Ideas?

Thanks
Ken

Re: Ctrl F2 when debugging a program using CEF4Delphi

Posted: Mon Dec 02, 2024 8:47 am
by salvadordf
KenS wrote: Mon Dec 02, 2024 6:24 am OK, I understand CEF4Delphi creates a duplicate of my exe (don't know why but know it does).
Chromium uses multiple processes for stability reasons. CEF uses the same application executable or a different EXE to handle all those subprocesses.

Read the following links for all the details :
https://www.briskbard.com/index.php?lang=en&pageid=cef#firststeps
https://www.chromium.org/developers/design-documents/multi-process-architecture/
KenS wrote: Mon Dec 02, 2024 6:24 am Scenario: working in Delphi making changes and testing to my email program.

My "production" version of email is also running.

Ok, I get to some point in my development version, stopped at some breakpoints, stepping through code, and realize there is a problem in my code. I am ten levels deep in routine calls so just reset, Ctrl F2.

In the past, occasionally I could not re-compile (cannot create exe). Lately it seems to happen almost every time, so I have to kill the exe from TaskMan. With the live version running it is hit or miss.

Ideas?

Thanks
Ken
Applications using CEF browsers should be closed following the destruction steps described in the code comments of the demos.

Killing the application process abruptly from the IDE may leave some of the subprocesses running.

Re: Ctrl F2 when debugging a program using CEF4Delphi

Posted: Sun Dec 08, 2024 8:45 pm
by KenS
Sorry, been away. Thanks for the info.

Ken