Re: [fpc-devel] XML Stream capacity

2010-01-14 Thread Sergei Gorelkin

Leonardo M. Ramé wrote:

I'm using fcl-xml to parse a XML data from a TMemoryStream/TStringStream and 
noted it can parse streams with a maximum capacity of 4096 bytes, why can't it 
receive bigger streams?.

The maximum capacity is defined in the constructor of TXMLStreamInputSource, in 
XMLRead.pp.

This value has nothing to do with total possible stream size, it is only the size of buffer used 
while reading.
The maximum size of XML data that can be read with DOM on a 32-bit machine is about 40 to 150 MBytes 
(depending on the data structure).


Sergei
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] XML Stream capacity

2010-01-14 Thread Leonardo M . Ramé
Thanks Sergey.

I tought that was why my program was stopping with an assertion in procedure 
TNodePool.AddExtent of dom.pp, the assertion dissapears when I work with 
smaller XML files.

BTW: the file worked with older versions of fcl-xml, now I'm using the trunk 
version because it no longer deppends on AVL_Tree, that wasn'n thread safe.

I attached the file I'm using for testing.

Leonardo M. Ramé
http://leonardorame.blogspot.com


--- On Thu, 1/14/10, Sergei Gorelkin  wrote:

> From: Sergei Gorelkin 
> Subject: Re: [fpc-devel] XML Stream capacity
> To: "FPC developers' list" 
> Date: Thursday, January 14, 2010, 12:51 PM
> Leonardo M. Ramé wrote:
> > I'm using fcl-xml to parse a XML data from a
> TMemoryStream/TStringStream and noted it can parse streams
> with a maximum capacity of 4096 bytes, why can't it receive
> bigger streams?.
> > 
> > The maximum capacity is defined in the constructor of
> TXMLStreamInputSource, in XMLRead.pp.
> > 
> This value has nothing to do with total possible stream
> size, it is only the size of buffer used while reading.
> The maximum size of XML data that can be read with DOM on a
> 32-bit machine is about 40 to 150 MBytes (depending on the
> data structure).
> 
> Sergei
> ___
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>


  

283355
2009-10-15 08:20:00
2009-10-15 08:39:00
A

MAMCH22S - ELSCINT
CR



18682009
U


1947-08-04


D.N.I.
18682009










2

340601


2009-10-17 08:20:00


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] XML Stream capacity

2010-01-14 Thread Sergei Gorelkin

Leonardo M. Ramé wrote:

Thanks Sergey.

I tought that was why my program was stopping with an assertion in procedure 
TNodePool.AddExtent of dom.pp, the assertion dissapears when I work with 
smaller XML files.

BTW: the file worked with older versions of fcl-xml, now I'm using the trunk 
version because it no longer deppends on AVL_Tree, that wasn'n thread safe.

I attached the file I'm using for testing.


Does r14644 solve the problem?

Sergei

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] XML Stream capacity

2010-01-14 Thread Leonardo M . Ramé
Yes!, thank you very much Sergei.

Leonardo M. Ramé
http://leonardorame.blogspot.com


--- On Thu, 1/14/10, Sergei Gorelkin  wrote:

> From: Sergei Gorelkin 
> Subject: Re: [fpc-devel] XML Stream capacity
> To: "FPC developers' list" 
> Date: Thursday, January 14, 2010, 2:24 PM
> Leonardo M. Ramé wrote:
> > Thanks Sergey.
> > 
> > I tought that was why my program was stopping with an
> assertion in procedure TNodePool.AddExtent of dom.pp, the
> assertion dissapears when I work with smaller XML files.
> > 
> > BTW: the file worked with older versions of fcl-xml,
> now I'm using the trunk version because it no longer
> deppends on AVL_Tree, that wasn'n thread safe.
> > 
> > I attached the file I'm using for testing.
> > 
> Does r14644 solve the problem?
> 
> Sergei
> 
> ___
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel