Re: Webbrowser.document.body.innerText out-of-memory error



If you're running this under the Document Complete event, try this:

Do While WebBrowser1.Busy = True
DoEvents
Loop

And then try retrieving the document.

hth.

R.T.Edwards -- pwpsquared.com

Home Of: DevDiagnostics With Safe For Scripting, Safe For Initialization key
management

http://www.download.com/DevDiagnostics-with-SafeKeys/3000-2408_4-10438225.html?tag=lst-0-1

DevDiagnostics is a framework that provides an interface to lots of
different diagnostic and informational tools. System and network
configuration are easily viewed, with links to system tools to change
information when appropriate. Safekeys allows you to easily turn on or off
the registry settings that allow safe for scripting and safe for
initialization. Overall, this tool makes it easy to find information on
whatever issues your programs may be encountering on a system.



"Tony" <tradingbum@xxxxxxxxxxxx> wrote in message
news:94qdnT7o0IVsrWzcRVn-vQ@xxxxxxxxxxxxxxx
> I'm trying to retrieve the contents of a webpage which is 2.90 Mb in size.
> On all webpages > 2.4Mb DOM object fails.
>
> Why does the following statement produce a Run-Time error 7: Out of Memory
> error when IE can retrieve the same webpage, render it, and use the "save
> as" function?
>
> text$=Webbrowser.document.body.innertext
>
>
> Notes:
> The code fragment is within a working VB6.0 application that retrieves any
> webpage with content <2.4Mb.
>
> Hardware used: tested on two different Intel Celeron machines containing
> 384
> and 256 Mb RAM
> Software: VB6.0 (SP5.0) - note no other applications running while
> testing.
> System Status: clean reboot. 90%+ resources Free.
> OS: Win98 with all known updates.
> System Memory Passed 'Windows Memory Diagnostic' Program.
> Actual compiled Program file size: 32Kb (very small program. I've tried to
> reduce is t the fewest lines possible. No large arrays, globals, SUBs,
> FUNCTIONS, or procedures)
>
> Also worth noting is that the contents of the webpage mainly resides
> within
> one '<PRE>' tag.
>
> Is there an internal limit to the amount of text within one tag?
>
>
>


.



Relevant Pages

  • Webbrowser.document.body.innerText out-of-memory error
    ... I'm trying to retrieve the contents of a webpage which is 2.90 Mb in size. ... Why does the following statement produce a Run-Time error 7: Out of Memory ... Is there an internal limit to the amount of text within one tag? ...
    (microsoft.public.vb.controls.internet)
  • Re: deallocate object
    ... I scroll it I put a getStringin a String object to retrieve ... and so may be I got an out of memory from the virtual machine... ... (perhaps later still but I have not touched MySQL since). ...
    (comp.lang.java.programmer)
  • Re: Reply to Wolf
    ... of memory is storage and retrieval. ... "retrieve" just MEAN that, ... You asked earlier 'When you memorize ... Certain areas of the brain change when things are memorized. ...
    (comp.ai.philosophy)
  • Re: Drill Through Memory Issue
    ... on the first access you execute the drill, then store the result in a CSV ... I am directly connecting to the Data Server. ... rows into memory on my web server. ... I want to retrieve row 30000 through 30099. ...
    (microsoft.public.sqlserver.olap)
  • Re: Reply to Wolf
    ... computer memory have specific meanings that generally apply to the ... "retrieve" just MEAN that, ... The point is that whether it applies to human memory is an unsettled ... in the brain in the above case? ...
    (comp.ai.philosophy)

Loading