Recent

Author Topic: Laz 1.8.2 No memory left  (Read 19092 times)

six1

  • Jr. Member
  • **
  • Posts: 74
Re: Laz 1.8.2 No memory left
« Reply #75 on: March 14, 2019, 12:08:12 pm »
thanks a lot @chenyuchih  ;)

works like a charme on WIN10 / 64Bit Lazarus 2.0.0 fpc 3.0.4

Lazarus in compatibility Mode to WIN7 and that's it!

best, michel

af0815

  • Sr. Member
  • ****
  • Posts: 360
Re: Laz 1.8.2 No memory left
« Reply #76 on: March 14, 2019, 12:40:47 pm »
fpc 3.2 / 32 Bit solves the issue actual. It shifts the menorylimit from 1.8 GB to approx. 3.5 GB. But this is a hard limit - no way out, in 32Bit (with fpc). 
regards
Andreas

Thaddy

  • Hero Member
  • *****
  • Posts: 9187
Re: Laz 1.8.2 No memory left
« Reply #77 on: March 14, 2019, 12:51:49 pm »
That's not correct. Since fpc 2.6.4.
also related to equus asinus.

avra

  • Hero Member
  • *****
  • Posts: 1717
    • Additional info
Re: Laz 1.8.2 No memory left
« Reply #78 on: June 15, 2019, 10:56:12 am »
Follow up info:

After translation to Lazarus 2.0 fixes and FPC 3.2 fixes (32bit on Win10x64), and after installing tons of components I have again faced "No memory left" error. This time I hit a hard limit. It happened with normal non optimized build mode, and my Lazarus executable came to an extreme size of 790MB. I was forced to do it like that because my favorite optimized settings "-O3 -g- -Xs -CpPENTIUMM -CfSSE3" after a while bring me to incompatible PPU issues with already installed components (clean all does not help). So, now I could not continue installing packages for one or the other reason. Being desperate, I started playing again with optimization switches. Finally, everything works again and I could continue installing packages without issues and bringing Lazarus executable size down to 64MB, so I want to share this in case anyone else bumps into the same problem.

These are optimized IDE options that work:
Code: Pascal  [Select]
  1. -O2 -g- -Xs -CpPENTIUMM -CfSSE3
« Last Edit: June 15, 2019, 11:01:17 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib