I would also look for opportunities where you could close and re-open
the browser.  IE can be a bit of a memory pig I've noticed, and if you
are going to page after page after page with it, it will eventually
grow to use a lot of memory.

if it really was the text method in watir (or some ie/windows code it
is calling), you'd be able to demonstrate it by having a small loop
with a lot of text method execution, but never navigate off the
current page, and you'd be able to watch the memory used by the
browser swelling as the loop executes.

On Apr 6, 12:52 pm, "Darin Duphorn" <dduph...@redbrickhealth.com>
wrote:
> I guess I would add a puts statement or add a counter to see which iteration 
> it's failing on.
>
>
>
> -----Original Message-----
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] 
> On Behalf Of IDIEININIIS
> Sent: Monday, April 06, 2009 2:42 PM
> To: Watir General
> Subject: [wtr-general] Re: IE out of memory error (buffer overflow)
>
> My bad, I meant to say "Here is the error message:".
>
> The line of code where the error originates from, basically looks like
> this:
>
>    ie.div(path).text
>
> The command is in a loop and 'path' is a variable.
>
> On Apr 6, 4:24 pm, "Dennis I." <ideler.den...@gmail.com> wrote:
> > Hi everyone,
>
> > I was running a script and after a while an IE message popped up
> > saying it was out of memory.
> > I believe it's a buffer overflow from using the text method a lot.
>
> > Here is the code:
> > ---
> > The remote procedure call failed.
>
> >         from (eval):3:in `class_name'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:67:in `call'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:67:in `match?'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:43:in `locate'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:41:in `each'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:41:in `locate'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:40:in `catch'
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > locator.rb:40:in `locate'
>
> >          ... 7 levels...
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > element.rb:115:in `text'
> > ---
>
> > I'm new to Ruby as I learned it just to work with Watir.
>
> > Is there anyway how to prevent this error?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to