Re: large exe, compression or BPL

From: CarlosMacao (CMacao_at_suprasoft.pt)
Date: 09/27/04


Date: Mon, 27 Sep 2004 21:30:50 +0100

Joel Jn-Francois wrote:

> My program executable is currently 6MB and growing everyday as I
> implement new modules in my project. Presently I am getting an exe
> of 2MB after compression with ASPACK. Compession has worked out fine
> for me when my exe is 4MB or less before compression. Larger exe
> files (about 5MB or above) before compression has given me the
> following error message on Windows 95/98/ME: "A call to OS function
> failed". I read up on this error message and apparently this error
> occurs on Windows 98/95/ME when the system is running low on
> resources so I don't know if it has anything to do with compression.
>
> Can someone tell me which of the 3 options (Uncompressed large
> executables, Compressed Executables or Small executables along with
> BPL) they would recommend to be the most efficient and which one they
> think would most likely resolve my problem, if any?

I've got the same problem in the past especially with PageControls
using until 10 pages and each page using 20 or 30 controls.

I started using forms for each page which are dynamically created and
freed as user navigates on page control, this way the resources are
freed.

About the exe size I abandoned exe compress schemes, build with
run-time packages scheme (which consumes even more memory because all
the package has to be loaded into the memory, instead of only the unit
code needed on link time) and replaced this methods for the Citadel
process of compressing only the resources which are dynamically
uncompressed to memory as needed. This way I also protect the resources
from being hacked.

Best Regards,
Carlos Macao



Relevant Pages

  • Re: large exe, compression or BPL
    ... What is a Citadel Process? ... Presently I am getting an exe ... >> resources so I don't know if it has anything to do with compression. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Newbie-ish dialog box questions
    ... You could try to find out the type of compression used by looking at ... you may google on 'exe unpacker' or 'dos exe unpacker' ... close, and select DBF files and to SEEK, as ... for more about dialog boxes: ...
    (comp.lang.clipper)
  • Re: HTTP Download of EXE
    ... We also tried this with an uncompressed exe and saw the same behavior, ... with compression off doesn't when its on. ... All of our tests were run from the same client running the same IE browser, ... > compression is to disable compression on the server, ...
    (microsoft.public.inetserver.iis)
  • Re: Creating a zip file
    ... nobody said that exe and jpg files can't be zipped. ... The question is whether zipping compresses files. ... no further compression to speak of. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Opinions on the best EXE compressor
    ... so to stop the user from launching several instances of the ... same exe ... ... All my programs reside in a network location ... ... It's no so simply at all to say "no" to exe compression. ...
    (borland.public.delphi.thirdpartytools.general)