Re: [fpc-pascal] RE: Getmem -> Move -> Freemem

2009-04-26 Thread Jonas Maebe
On 26 Apr 2009, at 23:15, Guillermo Martínez Jiménez wrote: Now it fails trying to copy 998846 bytes. If I put an "IF fSize < 90 THEN..." to prevent move more than 90 bytes it does work and I'm sure it moves up to 206737 bytes. But "size" is LONGINT so IIRC it should be able to copy ~2G

[fpc-pascal] RE: Getmem -> Move -> Freemem

2009-04-26 Thread Guillermo Martínez Jiménez
> Both are .dat and fdata are points. IOW you are moving "fsize" bytes from > the place where the 4 byte of the pointer dat is stored to the place where > the 4 bytes of the pointer fdata is stored. Since you probably move more > than 4 bytes you totally corrupt what is behind "fdata" in memory. >