Pech0rin / delphichromiumembedded

Automatically exported from code.google.com/p/delphichromiumembedded
0 stars 0 forks source link

TChromium.Browser.MainFrame.LoadUrl throws an exception #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. New Application
2. Drop TChromium, TButton on form
3. Button1Click Event:
  Chromium1.Browser.MainFrame.LoadUrl('file:///./test.html');
4. FormCreate Event:
  Chromium1.DefaultUrl := 'file:///./test.html';
5. Make sure you have a "test.html" file in the project directory
6. Run app and click button

What is the expected output? What do you see instead?
I expect Chromium1.Browser.MainFrame.LoadUrl to load an HTML file, but it 
raises an exception.

What version of the product are you using? On what operating system?
Delphi 7 / WinXP pro SP3

Please provide any additional information below.
TChromium loads and display HTML file properly when the DefaultUrl is set in 
FormCreate event, but it does not load when using the LoadURL method.

Original issue reported on code.google.com by adar...@gmail.com on 4 Feb 2011 at 8:19

GoogleCodeExporter commented 8 years ago
BTW, the version is SVN trunk rev 26 and using "cef_binary_r181_VS2005-VS2008"

W. Sherman
Las Vegas

Original comment by adar...@gmail.com on 4 Feb 2011 at 8:27

GoogleCodeExporter commented 8 years ago
It is a old problem with Delphi 7, fixed in later versions.

Original comment by hgourv...@gmail.com on 5 Feb 2011 at 12:00

GoogleCodeExporter commented 8 years ago
Yes, this problem is fixed, thanks.  Seems a race condition remains, I will 
submit on another report.

Original comment by adar...@gmail.com on 5 Feb 2011 at 11:13

GoogleCodeExporter commented 8 years ago
Chromium1.Load('file:///./test.html');

Original comment by infou...@gmail.com on 27 Oct 2011 at 6:53