Re: [fpc-pascal] paszlib problem: integer overflow

2013-11-14 Thread Dennis Poon
Dennis Poon wrote: I downloaded the Paszlib-sg from http://sagsehome.net/oss/paszlib-sg.php (as suggested by Paszlib freepascal.org wiki). I works fine on my Delphi 5 until I try to compress a file with size of 70M and it raises the exception of integer flow error. Does anyone have this

Re: [fpc-pascal] paszlib problem: integer overflow

2013-11-14 Thread Marco van de Voort
In our previous episode, Dennis Poon said: Dennis Poon wrote: I downloaded the Paszlib-sg from http://sagsehome.net/oss/paszlib-sg.php (as suggested by Paszlib freepascal.org wiki). No. It doesn't suggest that. It says that code in FPC originally came from the same sources as that. But

Re: [fpc-pascal] paszlib problem: integer overflow

2013-11-14 Thread Dennis Poon
I works fine on my Delphi 5 until I try to compress a file with size of 70M and it raises the exception of integer flow error. That means you enabled that somehow. Integer under/overflow is generally not enabled by default, and it is somewhat unlogical to use it with converted C code.

Re: [fpc-pascal] paszlib problem: integer overflow

2013-11-14 Thread José Mejuto
El 14/11/2013 18:15, Dennis Poon escribió: I'd love to just use the paszlib in Lazarus/fpc but I also need the same unit for Delphi 5 (Dephi 5 program will compress data and send to linux /lazarus/fpc program ) so both sides need to understand the same compress/decompress protocol. I tried

[fpc-pascal] paszlib problem: integer overflow

2013-11-13 Thread Dennis Poon
I downloaded the Paszlib-sg from http://sagsehome.net/oss/paszlib-sg.php (as suggested by Paszlib freepascal.org wiki). I works fine on my Delphi 5 until I try to compress a file with size of 70M and it raises the exception of integer flow error. Does anyone have this problem? I initially