Archived Forum Post

Index of archived forum posts

Question:

Failing to open large EXE (OpenMyEmbedded)

Aug 24 '15 at 02:43

Hi,

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: 9.5.0.51
    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


Answer

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.