STrange VB6 Application size (important)
Hi ,
i got a strange vb6 application size today
me and a friend of mine tested a simple code like this
open vb6 create new project and added that
Code:
Private Sub Form_Load()
MsgBox ("hello vb6")
End
End Sub
For me the size is 16 kb
but seem my friend got only 6 kb !!!!
can someone test that and put his size here .
How come that happen ? cause i really interested to have the same size as he got
Thanks & much appreciated
Re: STrange VB6 Application size (important)
the exe size is 16kb maybe he didnt add some of the code or something other than the code above
Re: STrange VB6 Application size (important)
Quote:
Originally Posted by
DebbieCane
the exe size is 16kb maybe he didnt add some of the code or something other than the code above
no is the same m8 me too i didnt get it
but i compile it and tested the same code via teamviewer
i have the both 2 file if someone interested to compare or so i can upload them
Thanks
Re: STrange VB6 Application size (important)
If your sizes are correct, there is obviously something extra in your project. It could be that you are referencing more libraries that your friend (Menu->Project->References), different compile type (Menu->Project->Properties) change compile to P-Code gets me down to 12k. Maybe he removed the icon as well?
Re: STrange VB6 Application size (important)
Did your friend also compile the app, are you using the same version of VB?
Maybe you should ask your friend to send you a zip of the project so you can compare the .vbp, .frm/.frx files to yours, as needed?
Re: STrange VB6 Application size (important)
Yes it's the same and we did compile it on native-code both
i did compile it by myself via teamviewer and yes we have the same version 6.0
i want really to know how can that happen :rolleyes:
Re: STrange VB6 Application size (important)
I have 16Ko too.
Can you open the EXE with notepad to check if you find anything like "UPX" ? Maybe hes IDE has a plugin that Compresse the EXE at the end ? (When I use UPX, the EXE size is about 5,9Ko, so the same as your friend ;))
1 Attachment(s)
Re: STrange VB6 Application size (important)
hmm i dont think so but here you his file maybe someone can find the issue
it just say hello vb6 and end
Thanks
Re: STrange VB6 Application size (important)
Um, are all of you using the same filesystem? If one of you is using FAT32 and another NTFS, couldn't there be differences like this due to the differences in the Allocation unit?
FAT can have 16Kb or 32Kb allocation units, so any file smaller than those sizes actually takes up a full allocation unit in the filesystem.
FAT32 can also be configured with different unit sizes, if I remember correctly,
and NTFS has a 4Kb unit, I think.
Maybe this is your issue?
-EM
Re: STrange VB6 Application size (important)
i use NTFS here...
maybe but i dont this is the issue
you can take a look at the file i posted i compile it myself via teamviewer
Re: STrange VB6 Application size (important)
Quote:
Originally Posted by
emartinho
If one of you is using FAT32 and another NTFS, couldn't there be differences like this due to the differences in the Allocation unit?
No there is no difference between FAT32 and NTFS. I've just compiled a new project with just 1 Form, no code and no references and and its 16Kb for both systems. WinXP and WinME.
I've just compiled the same project on VB4 16bit and its 8Kb and the same on VB3 and its 6Kb. ;)
Re: STrange VB6 Application size (important)
Re: STrange VB6 Application size (important)
Quote:
Originally Posted by
killer7k
hmm but he use vb 6.0
So am I, I'm just showing the difference between VB3, VB4 16bit and VB6 exe sizes. ;)
Re: STrange VB6 Application size (important)
What is the disk cluster size of each system where the .exe resides?
Are any Advanced Optimizations turned on or off?
Are .frx files the same size?
Do right-click properties in Windows Explorer to get true file sizes: Size vs Size On Disk.