realbasic-nug
[Top] [All Lists]

Re: XMLReader crashes on 1,8 GByte XML

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: XMLReader crashes on 1,8 GByte XML
From: Stefan Pantke <seaside dot ki at mac dot com>
Date: Sat, 1 Oct 2005 01:43:12 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050930222958 dot 3D068DDFE09 at lists dot realsoftware dot com> <D390C4FE-AEA1-4015-8647-6CE8BBEC5881 at elfdata dot com>

Am 01.10.2005 um 01:27 schrieb Theodore H. Smith:

From: Stefan Pantke <seaside dot ki at mac dot com>
Date: Fri, 30 Sep 2005 23:26:35 +0200

I tried to parse an 1,8 GByte XML file using XMLReader. The app
crashes within
seconds.

Isn't XMLReader designed to read the source file in chunks and
process them
step by step?


Is XMLReader itself crashing, or *your* code?

The app crashes and the Apple's bug report shows 'plugin' as
focus of control [RB 5.5.].

But

    myXMLReader.Parse( myXMLFile )

should not.

I feel, that XMLReader isn't loading the 1,8 GByte source in
chunks, but loads the whole file and then tries to parse.

Another RB lib routine which strongly feels like 'Well, don't care about
details, just implement it using a quick hack. People will
find the detail and work around...'.

Great feature for an event driven parser :-(

It's really fun, whatever lib I use the first time, I a first bug
or inconsistency within 24 hours of coding.

Meanwhile I changed MY code to read chunks and feed them
step by step in the reader. _______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>