Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To reduce the size of the .EXE file in Vîsual Basic 6!!!

Status
Not open for further replies.

nitrox

Programmer
Aug 24, 2000
19
BR
I want to reduce the size of the .EXE file, my application is very slow, because the .EXE file takes memory a lot.

This is possible without to change the application?
 
Select this option in your visual basic menu :
Project -> Properties of 'YourProject' -> Compile
and select then 'optimize for reduce code' option.

Antonio Romera.
 
hehe, based on what you said, I think you would have to change the application a bit, and figure out what you are doing wrong, it could be a simple situation of poor programming techniques, or not securing memory leaks, dont use Variants all the time (they're huge) try to keep data types as small as you need. etc, btw what does your program do anyways.
 
You can also use a program called ASpack. It can shrink you exe file by 50%. This might not help so much with the memory but it will make your file alot smaller. [sig]<p>Todd Norris<br><a href=mailto:Todd.Norris@home.com>Todd.Norris@home.com</a><br><a href= Personal Profile 2000</a><br>Hope this helps ![/sig]
 
Aspack -- where do you get that then? [sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Mike, my guess would be I'm going to have to try this package to see how it compares to PKlite (my personal favorite). ASPack doesn't appear to allow encryption (bummer) but my guess is that the executables might run slightly faster than the PKlite equivalents.

One &quot;feature&quot; (or drawback, however you see it) is that ASPack is &quot;completely transparent&quot; and hooks itself as a shell extension &quot;for ease of use&quot;. I read that to mean all of your compiles will result in compressed executables.

Hmmm. Maybe there's a way to turn that feature off.

[sig]<p> <br><a href=mailto: > </a><br><a href= plain black box</a><br>Don't sit down. It's time to dig another one.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top