Delphi CEF Check if site is not reachable

Multi tool use
Multi tool use


Delphi CEF Check if site is not reachable



I'm use CEF 3.2623.1401.gb90a3be (Chromium 49.0.2623.110) in my project in Delphi 10.1. (I have to use a fairly old version of CEF/Chromium for backwards compatibility with WinXP). How do I can check if a site is not reachable? if I try to open any obviously non-existent or inaccessible site in a normal Chrome browser - I get an error like DNS_PROBE_FINISHED_NXDOMAIN or ERR_INTERNET_DISCONNECTED, but in my embedded Chromium I get just a blank page without anything. Can I somehow catch such errors in Chromium?


DNS_PROBE_FINISHED_NXDOMAIN


ERR_INTERNET_DISCONNECTED




1 Answer
1



Yes, you can. There is the OnLoadError event that you can handle (error codes you can then find in the ceferr.pas module).






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

AbQDaeQj,CZ2 L8aXhZ0ZA pztv8fE2rhF,nz4IiNpElGUk polX9nA9byVI,78Ob4qjQtET
VtERiVt,ul9wM6gbk,QtF,MiisYKjxHVX5FNGvK7lHPGIL5KTfG

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters