kuza55 / csexwb2

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

StackOverflowException while using FindInPage in certain situations #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a Timer to frmMain in the Demo App, enable it by default
2. In the Timer Event call m_CurWB.FindInPage("404", true, true, false, 
false);
3. Navigate to a page (I tried google) and you will be confronted with an 
"unhandled StackOverflowException in mshtml" in cEXWB.cs

What is the expected output? What do you see instead?
No unhandled exception

What version of the product are you using? On what operating system?
1.0.0.3, XP pro SP 2

Please provide any additional information below.
I also noticed that the Find in page feature of the demo app ignored 
iFrames.

dartrax

Original issue reported on code.google.com by dart...@gmail.com on 28 Aug 2007 at 10:34

GoogleCodeExporter commented 8 years ago
You can not use the timer in combination with FindInPage or any other methods 
that 
access the document object in this fashion. As it causes StackOverflowException 
or 
possibly others and crashs the IDE. If you want to find out if there was a 404 
page, 
then use the NavigateError event.

In regard to FindInPage, I will add an example of how to deal with IFrames in 
the 
next release.

MH

Original comment by mehr...@gmail.com on 29 Aug 2007 at 11:35

GoogleCodeExporter commented 8 years ago
Why not? I use a timer to do many other things with the DOM while the document 
loads, that's the way my application works, and it's working properly.

Can you provide a list which methods should not be used with a timer so that I 
can 
evaluate in future which solutions may not work?

dartrax

Original comment by dart...@gmail.com on 29 Aug 2007 at 8:58