Delphi 7 CEF3 - Access Violation 00000000

1,318 views
Skip to first unread message

Lane Fowler

unread,
Apr 7, 2014, 12:03:09 PM4/7/14
to delphichrom...@googlegroups.com
I have been trying to get CEF3 working with Delphi 7

Since the new release over the weekend. 4/4/2014.

I updated all the source and replaced the DLL's 

It has no problem compiling. 

When I run, I get this Access Violation 00000000 at Address 00000000 read of address 00000000
I get this right away.   My guess is when the default page is loading  about:blank

I tried to trace it and it come back from some function in cdflib and it is broken. 

What could I be doing wrong? 

Using Delphi 7 Enterprise  Build 4.453 

I have the Delphi code that makes a full browser pane. 

I plan I writing code to drag and drop ,  debug html5 code tool.   But can't seem to get past this issue. 

Thanks for the help
Lane

sla...@gmail.com

unread,
Apr 7, 2014, 1:44:58 PM4/7/14
to delphichrom...@googlegroups.com
I had the same symptom.
My RAD XE has been linking my code with previous version of the libs,
and I still don't know why. I had delete all files from previous version (.lib,
.bpl etc.). And now it works fine.

Lane Fowler

unread,
Apr 7, 2014, 3:15:58 PM4/7/14
to delphichrom...@googlegroups.com

Thank you for the quick reply, 
but No Joy. 

I use this copy of Delphi 7 every day so I don't think it could be the IDE 
I do have 100+components installed, does't everyone. . 

I went ahead and deleted all my code. 
Removed the package from the IDE. 
restarted the IDE
reinstalled the package being sure it was all fresh code. 

Created a new project , Dropped  TChromium  on a form.
(had to fix the path to dcef3 /   src  )  
Told it to Build the project. to be sure all was fresh. 
Press f9  
and still same error.   Access Violation 00000000

Lane

Flash Flasher

unread,
Apr 7, 2014, 3:36:32 PM4/7/14
to delphichrom...@googlegroups.com
Have a look at this answer. I got the same problem and this answer helped me.

The only difference is that I omitted the first part, and left the second (this way I avoided one memory leak- do know why)
CefRegisterSchemeHandlerFactory('local', '', False, TFileScheme);

still, dont know why this has to be added to the project, while it was fine before.

BTW. Do you get other memory leaks like those of mine?:
21 - 28 bytes: Unknown x 1
29 - 36 bytes: TCustomRequestContextHandler x 1
69 - 76 bytes: Uknown x 1
85 - 92 bytes: TVCLClientHandler x 1.


W dniu poniedziałek, 7 kwietnia 2014 18:03:09 UTC+2 użytkownik Lane Fowler napisał:

Lane Fowler

unread,
Apr 7, 2014, 4:22:30 PM4/7/14
to delphichrom...@googlegroups.com
I understand where you say to put this, in the code that creates the from. 

But where did you get 
 ceffilescheme;

It is not in the zip file. 

Also why did you leave out  Application.Initialize;

Almost there. 

Thanks

Lane Fowler

unread,
Apr 7, 2014, 5:58:00 PM4/7/14
to delphichrom...@googlegroups.com
Ok I see the issue
you are using a file in the demos pages
I have done as you suggested 
but left the Application.Initialize; 
in after the begin statement
'
and Now it seems to work 

This allows me to move forward. 
Hope this is fixed soon, hate a patch like this to go into production. 

Thanks again 

Lane

Henri Gourvest

unread,
Apr 9, 2014, 4:38:31 PM4/9/14
to delphichrom...@googlegroups.com

There is a bug with delphi 7 compiler, you have to build application before to run to avoid access violation :/
I see there is something else going wrong when resizing the window.
I investigate ...

Leandro Lins

unread,
Sep 27, 2014, 4:12:41 PM9/27/14
to delphichrom...@googlegroups.com
Dude, watch this video and our problem be resolved! ;)

https://www.youtube.com/watch?v=hplrr003p2M

Hugs.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages