Dropping a TTMSFNCWebBrowser component on either a VCL or FMX form causes Rad Studio Delphi to crash. This occurs with both VCL and FMX applications.
Windows 10 (Version 109.0, Build 18362, 64 bit Edition)
RAD Studio 10.3 Version 26.0.34749.6593 - Update 2
TMS FNC Core 2.1.0.2 3/24/2020
TMS FNC UI Pack 3.0.1.2 3/24/2020
Edge Version 83.0.474.0 (Official build) canary (64-bit)
Steps to recreate: Create a new VCL or FMX application. Drop a TTMSFNCWebBrowser on the form. The wheel spins and after about 30 seconds, Rad Studio closes.
I already had the latest FNC products before installing Edge. After Edge was installed, I copied the
DLL files from their TMS locations to the system folders. For some reason WebView2Loader_x64.dll was in the syswow64 folder before I copied anything.
I was able to resolve the crash issue by making sure both the SYSTEM32 and SYSWOW64 folders had copies of each DLL. However, the component does not behave as expected. I will post a separate message after investigating further.
Although I resolved the crash at startup, using the TMSFNCWebBrowser continued to crash Delphi. Initially, the crashes occurred when I clicked off of the browser component. Within 20 seconds, Delphi would crash. I changed the default browser from Chrome to Edge Canary and rebooted. I still had issues with either Delphi or the application crashing and there were no messages. But I found that if I left Edge running, I could get the application to run and Delphi would not crash.
The component started working as shown in the tmssoftware demo. I added additional functionality to the application and found it worked well. At some point, it seemed having Edge open was no longer necessary. At that time, I decided to reboot and attempt to recreate the crashes.
But after rebooting, the browser application would no longer work. It loaded into the IDE but the live browser view was no longer present. When the application was run, it failed to appear on the screen even though it was shown in the task list and on the task bar. It was necessary to use task manager to kill the process. Delphi also behaved strangely and occasionally displayed exceptions. Most of the time Delphi had to be killed.
There are no issues when working with other Delphi applications. The version of Edge displayed when the browser component was working is 83.0.477.0. It is unclear if the problem is with the component or with Edge.
I installed the latest FNC packages and the program now compiles and Delphi no longer crashes. The version of FNC Core is now 2.2.0.0. I copied the latest DLL's from the edge support folder to the windows system directories.
When the application executes an information dialog displays the message "Could not initialize Edge Chromium! Please check Edge Chromium installation and verify the correct version number." The browser is then displayed but is non-functional.
The Edge version is the latest Canary release of 83.0.478.1. Please advise.
I'm a little confused over using the new browser in Windows. I undersatend that I need to distribute your dll's but do my users also have to have the Edge Dev version installed?
Version 83.0.478.5 (Official build) dev (64-bit) of Edge - is this a known problem? I just get "Could not initialize Edge Chromium" on VCL or FMX versions .