Re: Source of EXE Size




"Dan Johnson" <johnson@xxxxxxxxxx> wrote in message
news:3566f$4326e3ea$d826dfe9$18121@xxxxxxxxxxxxxx
> To answer both Chris and your questions...
>
>> > My VB6 executable file has significantly increased in size ....
>>
>> Since when?
>
> ***Over the last several months it's gone from approx. 1,900 KB to 3,800
> KB.

You said over the last several months. That in itself doesn't mean
anything. In several months, you might have added 1 line of code or
thousands of lines of code. Obviously, if you've added thousands of lines of
code, the size of the EXE is going to increase.

I do recall hearing of a bug in VB (not sure what version of VB or if it
ever got fixed) where an EXE would grow in size upon recompilation even if
no changes whatsoever were made to the project. I seem to remember this
affecting VB3 and under, but I'm hardly sure about that.

In any case, if you've made very few changes to the project (in code, adding
controls or forms, etc.) and the size of the EXE grows considerably, some
things to keep in mind are resources you might have added. IOW, you could
have added picture, sound, etc. resources and not have made many code
changes at all. However, this could cause the size of the EXE to be
considerably larger.

--
Mike
Microsoft MVP Visual Basic


.



Relevant Pages

  • Re: ERROR_RESOURCE_TYPE_NOT_FOUND error comes
    ... Made DLL which contains resources like dialog, ... Made a static lib project which contains classes for resources ... This control is populated by lib classes. ... locale ID, and if not found, is defaulted to the app .exe itself. ...
    (microsoft.public.vc.mfc)
  • Re: How to load resorces of a form that is not loaded
    ... But I don't need to update the exe when the exe is already running. ... I have to add the resources at compilation, when I have the resources that I ... picture on a form) using the VB resource editor, ...
    (microsoft.public.vb.general.discussion)
  • Re: #pragma lib buggers everything up
    ... A lot of the resources are relevant to the static ... a client exe, and I experienced these too, i.e. the exe can't use any ... Have a resource-only DLL, you might say, - yes, I did consider this but the ... > and often on a particular version of the compiler and particular compiler ...
    (microsoft.public.vc.language)
  • Re: Technical Delphi Question (but not about coding)
    ... > Windows 2003 Server allow users to rename a running EXE. ... > loading/reloading of resources from the original EXE cause problems? ...
    (borland.public.delphi.non-technical)
  • Re: deployment question
    ... The best way in .Net sould be decided looking at your app, I mean, if your ... app does not need to access local OS resources ... you should put the .exe in your server and create the shortcut for users, ... updates in the server and get it distributed automatically (you'll have to ...
    (microsoft.public.dotnet.framework.setup)

Loading