Giter Site home page Giter Site logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
One thing that I can test pretty consistently is that it takes some time for 
the Browser field to become valid:

  while Chromium1.Browser = nil do begin
    Sleep(100);
    Application.ProcessMessages;
  end;

Besides that, there must be another internal race, because the MainForm field 
sometimes never becomes valid:

  while Chromium1.Browser.MainFrame = nil do begin
    Sleep(100);
    Application.ProcessMessages;
  end;
  //sometimes we never get here, but get stuck in the loop above
  Chromium1.Browser.MainFrame.LoadUrl('file:///./test.html');

It appears to me that the slower it is to launch the program and load its 
libraries, the more likely the problem is to exhibit itself.

Original comment by [email protected] on 6 Feb 2011 at 12:43

from delphichromiumembedded.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
The browser is multithreaded, you have to wait the onaftercreated event to have 
a valid browser instance.
The first time use the DefaultUrl property.


Original comment by [email protected] on 8 Feb 2011 at 8:41

  • Changed state: Invalid

from delphichromiumembedded.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
Thanks :-) Works now.  If you create an initial wiki page, I would be happy to 
add some documentation about this.


Original comment by [email protected] on 8 Feb 2011 at 7:05

from delphichromiumembedded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.