c3yhun / delphichromiumembedded

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

Does not work with assertions off on Delphi 6. #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Delphi 6 =)
2. In the project options turn off "Assertions"
3. Compile and run gui application.

In that case component Chromium does not initialize.
See line 871 in cef.pas:
> Assert(CefBrowserCreate(@info, False, @FHandler, FDefaultUrl));
As long as initialization is in "Assert" procedure, compiler just ignores the 
main initialization.
To solve this problem it would be better to write some like this:
> SubRes := CefBrowserCreate(@info, False, @FHandler, FDefaultUrl);
> Assert(SubRes);

My e-mail is bitekas@gmail.com, I am inerested in this project because of my 
primary activity.

Original issue reported on code.google.com by bite...@gmail.com on 24 Nov 2010 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by hgourv...@gmail.com on 11 Jan 2011 at 1:21