Re: Webbrowser.document.body.innerText out-of-memory error
- From: "Richard T. Edwards" <r.t.edwards@xxxxxxxxxxx>
- Date: Sun, 25 Sep 2005 18:34:51 -0400
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?
>
>
>
.
- Prev by Date: Re: Winsock 10061
- Next by Date: Re: Not able to open
- Previous by thread: Re: Winsock 10061
- Next by thread: Re: Not able to open
- Index(es):
Relevant Pages
|
Loading