Niky Williams wrote:
Callum Prentice wrote:
Niky - may not be that useful but if you're looking for some more
example code, you might try looking at http://ubrowser.com - there is
source and an example exe there.
It's something I've put together as a testbed for something I'm doing
at work - might be a few nuggets of useful information there (as well
as some bugs :) )
I find looking through working source the most useful thing when
digging into this kind of stuff.
Afraid I don't know anything about MFC so I can't answer your question
specifically.
Cheers.
Callum.
Okay guys/gals, bear with me here. I was using the WinEmbed (Ya, I
know it's not supported) just to get my feet wet since it was a
smaller code base than MFCEmbed. Well, I've been looking at the
MFCEmbed example to understand it better...well, there is something I
just CAN'T seem to figure out. In the WinEmbed example there was an
event loop created via CreateEvent () to process all the gecko
events. I've looked ALL over the MFCEmbed example, but I can't seem
to find anything LIKE that. I did come across
nsIEventQueueService....does that have anything to do with the
events? Just a point in the right direction is all I need, thanks!
Niky Williams
Thanks for the reply, I've seen this before...VERY interesting. I'll
check through your code and see if I can see anything that pops out at
me...although I've been looking through various code for the past 2 hrs
and it's all starting to run together.
Niky Williams
Okay, I've made some progress with this...but now have another
interesting issue. When I execute nsIWebNavigation::LoadURI (), it
appears to be going okay...then I get a first change exception. My
guess is that some object is getting destroyed that should not be. This
is what I've been able to trace...
Right after LoadURI () is called, these are called in the following order:
nsIWebBrowserChrome::OnStateChange ()
nsIWebBrowserChrome::GetVisibility ()
nsIWebBrowserChrome::OnLocationChange ()
nsIWebBrowserChrome::OnStateChange ()
nsIWebBrowserChrome::OnProgressChange ()
nsIWebBrowserChrome::OnStateChange ()
nsIWebBrowserChrome::SetTitle ()
First-chance exception at 0x015b7164 in CGecko.exe: 0xC0000005: Access
violation reading location 0x00000046.
:-(
Now something interesting, when SetTitle () gets called, I get passed
the title to the webpage...in this case Google. So, I'm able to set the
title of the browser just fine. I did a check when OnLocationChange ()
and OnStateChange () gets called, I do get back http://www.google.com/.
So, it APPEARS it's trying to load it...but something is just not
right. Has anyone come across this issue before? I know I haven't
posted any code, but was hoping someone has seen this before and knows
what is going on. Thanks!
Niky Williams
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding