InnoSetup compress - Out Of Memory

FB 7.0.0.625, running on Win Server 2003 Enterprise in VMWare workstation.

This used to work just fine with FB6, never saw this error before. With FB6, the VM was set to have 1.4GB RAM.

Now I keep getting out of memory errors when our build script tries to compress our installer. I've reduced the iss compression setting from ultra to max  (supposedly reducing memory requirement for compression down from 372MB to 95MB), and also upped VM RAM to 4GB, but I still get out of memory errors.

Does FB support the IMAGE_FILE_LARGE_ADDRESS_AWARE PE flag, to enable FB to use up to 4GB RAM under certain windows versions (server/x64) and most importantly, make larger areas of address space available and possibly alleviate the problem? I suspect the problem might be that the address space gets too fragmented and the compressor doesnt get the contiguous memory block needed.

At the time of error, FB uses less than 300MB of RAM according to taskman.

 

Hi Eivind

We don’t have {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE} specified at the moment because we haven’t had a chance to test it fully. There is some risk that random av’s may occur where third party libraries do pointer arithmetic without taking care to cast to an appropriate type.

I will try it here and see what happens. We use InnoSetup ourselves but haven’t hit the out of memory error yet. I have discussed the issue with Jordan and basically it’s because Inno requires a large contiguous chunk of memory, if the memory manager cannot satisfy that then you will see the error.