We are adding ZIP file to EXE (AddEmbedded). This usually works very nicely, however it appears to cause problems when total size of zip exceeds some limit.
The LastErrorText below is from a EXE containing zip with 6 large files, that totals to 2.6 GB unzipped (~700 MB zipped). There is no problem adding ZIP to EXE file. Problem encountered is a "Out of Memory" error on "OpenMyEmbedded".
ChilkatLog: OpenMyEmbedded: DllDate: Jun 23 2015 ChilkatVersion: 18.104.22.168 UnlockPrefix: ABILIAZIP Username: SOME_PC:meg.selv Architecture: Little Endian; 32-bit Language: Visual C++ 12.0 (32-bit) VerboseLogging: 0 oemCodePage: 1200 Failed to map view of file filename: C:\Temp\83LargeVideos.exe Failed to open my EXE --OpenMyEmbedded --ChilkatLog
Any help is appreciated.
Many thanks Hakon
The zip.AddEmbedded, OpenEmbedded, ReplaceEmbedded, RemoveEmbedded, etc. methods are quite old and work by inserting the .zip as a resource in the EXE. Unfortunately, there are limits to the size. I don't know the exact limits. The MS Platform SDK that fails because of the size is MapViewOfFile (https://msdn.microsoft.com/en-us/library/windows/desktop/aa366761%28v=vs.85%29.aspx) I'm sorry to say that this is not something that would be pursued.
answered Aug 19 '15 at 20:00