I had a problem in windows xp that the process kept alive after closing my app.
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
GC.WaitForPendingFinalizers();
CefSharp.CEF.Shutdown();
Initially that resolve my problem.
Now i added some code that calls an external URL (for my API), this cause that my application hangs out when calling the
GC.WaitForPendingFinalizers();
When I removed this code the CefSharp.CEF.Shutdown(); generartes an error like this:
DisconnectedContext was detected
Message: Context 0x6586e8' is disconnected. Releasing the interfaces from the current context (context 0x658350).
This may cause corruption or data loss.
To avoid this problem, please ensure that all contexts/apartments stay alive until the application is completely done
with the RuntimeCallableWrappers that represent COM components that live inside them.
Any ideas what am I doing wrong????