Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-19 Thread Jonas Maebe
LacaK wrote: Btw is there any limit for number of memory block, which can be requested ? As far as my XML file has milions of nodes, may be that for each node is created instance of TDOMNode class (or TDOMElement I do not know), which in turn can cause that there is large amount of relative small

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-19 Thread LacaK
Btw is there any limit for number of memory block, which can be requested ? As far as my XML file has milions of nodes, may be that for each node is created instance of TDOMNode class (or TDOMElement I do not know), which in turn can cause that there is large amount of relative small memory blo

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-19 Thread LacaK
Wow I never heared about such option. This are my results: (compiled application is Win 32 bit) How large are the memory blocks that you try to allocate. Hard to say. This happens inside TXMLDocument class as content is reading from file in procedure ReadXMLFile. May be that somewhere dur

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-19 Thread Sven Barth
Am 19.05.2016 10:57 schrieb "Jonas Maebe" : >> it should be 2GB on 32bit and 4GB on 64bit Windows with >> *IMAGE_FILE_LARGE_ADDRESS_AWARE* > > > There is a difference between the total amount of memory you can allocate, and the maximum size of a single block of memory that you can allocate. The lat

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-19 Thread Jonas Maebe
LacaK wrote: Wow I never heared about such option. This are my results: (compiled application is Win 32 bit) How large are the memory blocks that you try to allocate. it should be 2GB on 32bit and 4GB on 64bit Windows with *IMAGE_FILE_LARGE_ADDRESS_AWARE* There is a difference between the

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-18 Thread Rainer Stratmann
Is there a different behaviour on linux? I guess there is no limit...(!?) Am Donnerstag, 19. Mai 2016, 08:46:57 schrieb LacaK: > >> another question: is there any limit in FPC, which causes that only cca > >> 1GB of memory can be used by FPC ? > > > > No, but there is one that limits to 2GB. >

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-18 Thread LacaK
another question: is there any limit in FPC, which causes that only cca 1GB of memory can be used by FPC ? No, but there is one that limits to 2GB. Yes With {$peflags $20} in the main file that is increasable to 3GB (reportedly 4GB for 32-bits apps under 64-bit windows, but I never tested

Re: [fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-18 Thread Marco van de Voort
In our previous episode, LacaK said: > another question: is there any limit in FPC, which causes that only cca > 1GB of memory can be used by FPC ? No, but there is one that limits to 2GB. With {$peflags $20} in the main file that is increasable to 3GB (reportedly 4GB for 32-bits apps under 64-

[fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

2016-05-18 Thread LacaK
Hi again, another question: is there any limit in FPC, which causes that only cca 1GB of memory can be used by FPC ? I have program, which reads big XML file (cca 500MB) using TXMLDocument class and attemot to expand it in memory ends with "Out of memory" exception. It is 32 bit program on 32