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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

libcef.dll has been used by another

Post Reply
coater
Posts: 187
Joined: Sat Sep 29, 2018 1:51 pm

libcef.dll has been used by another

Post by coater »

some times, when begin debuging, it will show that libcef.dll has been used by another(espesially first running when debugging). (use spotify or self, or not specify directories of cef lib)
But I still can run if I click Yes.
I use Resource monitor to search and found no one use it when this tip bring out.
Why it happened?
GlobalCEFApp := TCefApplication.Create;

// In case you want to use custom directories for the CEF3 binaries, cache, cookies and user data.
// If you don't set a cache directory the browser will use in-memory cache.

GlobalCEFApp.FrameworkDirPath := 'K:\DelphiSoft\cef4demos\cefspotify'; // 'K:\DelphiSoft\cef4demos\cef'
GlobalCEFApp.ResourcesDirPath := 'K:\DelphiSoft\cef4demos\cefspotify'; // 'K:\DelphiSoft\cef4demos\cef'
GlobalCEFApp.LocalesDirPath := 'K:\DelphiSoft\cef4demos\cefspotify\locales'; // 'K:\DelphiSoft\cef4demos\cef\locales';
{ GlobalCEFApp.EnableGPU := True; // Enable hardware acceleration
GlobalCEFApp.cache := 'cef\cache';
GlobalCEFApp.UserDataPath := 'cef\User Data';
}

// You *MUST* call GlobalCEFApp.StartMainProcess in a if..then clause
// with the Application initialization inside the begin..end.
// Read this https://www.briskbard.com/index.php?lang=en&pageid=cef
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
{$IFDEF DELPHI11_UP}
Application.MainFormOnTaskbar := True;
{$ENDIF}
Application.CreateForm(TForm1, Form1);
Application.Run;
end;

GlobalCEFApp.Free;
GlobalCEFApp := nil;
caused by GetExtendedFileVersion?
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: libcef.dll has been used by another

Post by salvadordf »

Perhaps the antivirus is scanning it. Add your application to the list of safe applications or disable it while you debug your app.
Post Reply