From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c19064b1a16e21cb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu.net!read.news.fr.uu.net!not-for-mail From: Emmanuel Briot Subject: Re: Stack overflow using Xml/Ada Date: Wed, 21 Jul 2004 09:37:18 +0200 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: lyon.act-europe.fr X-Trace: 1090395439 read.news.fr.uu.net 335 212.157.227.160 X-Complaints-To: abuse@fr.uu.net Xref: g2news1.google.com comp.lang.ada:2304 Date: 2004-07-21T09:37:18+02:00 List-Id: On Tue, 20 Jul 2004 23:25:26 +0200, Jano wrote: > I'm using the excellent Xml/Ada library to parse a file (incidentally, > created too with Xml/Ada). The problem is when I try to parse it back > into memory, since I get a stack overflow when calling the This is a known issue with the current public release of XML/Ada, fixed in customer releases. Using Direct_IO indeed has the limitation you pointed out. The new version uses Ada.Sequential_IO instead. You haven't specified on which platform you are, but if you are on an allocate-on-use system, like linux, you want to unlimited the stack size anyway, this gives you an immediate workaround unlimit stacksize In passing, I am planning a new public release some time in september/october, which will including validation capabilities. Emmanuel