monkeyxu/delphichromiumembedded

Does not work with assertions off on Delphi 6.

Closed this issue · 1 comments

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

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

  • Changed state: Fixed