Cannot open file libcef.dll
Posted: Tue Jun 09, 2020 2:33 pm
Hello.
I'm trying to bring into life the folowing scenario:
1.Creating browser form with TChromiumWindow on it by clicking the button.
(I'm creating TCefApplication in the button click event handler before creating the browser form)
2.After closing browser form i'm destroing it. And I'm calling DestroyGlobalCEFApp in OnDestroy method of the browser form.
My goal is to create chromium subprocesses only for a short period of time when i need them. And destroy them after that.
Scenario works fine for the first time. There is the problem at the second time. In debugger mode i'm getting error
What am doing wrong? Source code I used is in the attachment.
I'm trying to bring into life the folowing scenario:
1.Creating browser form with TChromiumWindow on it by clicking the button.
(I'm creating TCefApplication in the button click event handler before creating the browser form)
2.After closing browser form i'm destroing it. And I'm calling DestroyGlobalCEFApp in OnDestroy method of the browser form.
My goal is to create chromium subprocesses only for a short period of time when i need them. And destroy them after that.
Scenario works fine for the first time. There is the problem at the second time. In debugger mode i'm getting error
Code: Select all
---------------------------
Debugger Exception Notification
---------------------------
Project SimpleBrowser.exe raised exception class EFOpenError with message 'Cannot open file "H:\projects\code\cef4delphi\bin\libcef.dll". The process cannot access the file because it is being used by another process'.
---------------------------
Break Continue Help
---------------------------