Size of executable

  • Thread starter Thread starter Hemang Shah
  • Start date Start date
H

Hemang Shah

Hello

I just realized my c# application which has only about 3 forms, is almost
50MB in size.

Is that normal ?

How can I make it more managable and practicle?

Thanks
 
Funny joke. Of course it isn't normal...

On the odd chance that you were serious, what are
you including in your resource files???
 
Maybe he means that his app uses 50MB of memory when running (as opposed to
the size of his .exe)

Joel
 
LOL, Ok so I wasn't wrong about the size being inflated was not normal!

I thought it was because of the debug mode, so I changed it to release and
the file is again 43,956 KB.

and I'm refering to the physical size of the executable, not the memory.

How can I check what is included in my resources file?

I haven't added anything intentionally, but there has to be some reason for
it being 43MB in size!

What are the few obvious reasons for this?

Thanks

HS
 
Are you ABSOLUTELY sure that it is 43,956 KB?

Could it possibly be 43,956 B(ytes)?
 
:)

Yes Stephany, I do know how to read the size of the application.

I have <executable>.exe.config file, which is at 1KB (which is fine).

I do around 2 dozen crystal reports, but they are all saved in separate .rpt
files.

I see that for each report, there is also a .cs file, I don't know what is
the cause of this magnitude of the size of the executable.

I hope someone has the answer.

Thanks

HS
 
I'm a VB.Net man, myself, but I ran into something like this when I tried
to use large images as backgrounds on my form. I'm not sure how it works in
C#, but when you set a background image for any control including forms, it
gets saved as a resource and then compiled into your application. The same
applies for anything that you include in your project as an "Embedded
resource". Is it possible this is happening with your crystal report files?

Sorry if I'm way off track - but maybe it'll point you in the right
direction.
A.
 
Back
Top