Size of executable

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

Hemang Shah

Hello

I'm developing a database application in c#.

However suddenly the size of my .exe file is about 43MB!

I'm only have 4 forms. Is there a way to see what is taking up all the
space?

Thanks

Hs
 
43 MB or 43 kB? If 43 MB, that's astonishing!

You don't have any really large graphics in it, do you?
 
Exactly, and I don't know how it reached 43MB (Yeah its MB)

There are no graphics.

It does have a 8 tabbed page control in one of the forms.

I had a imagelist control, I deleted it and tested it, still around 40MB!

I also changed the complie to "release" from "debug" thinking it would be
saving some debug info, still no help.

Any suggestions ?
 
Hemang Shah said:
Exactly, and I don't know how it reached 43MB (Yeah its MB)

There are no graphics.

It does have a 8 tabbed page control in one of the forms.

I had a imagelist control, I deleted it and tested it, still around 40MB!

I also changed the complie to "release" from "debug" thinking it would be
saving some debug info, still no help.

Any suggestions ?

Have a look at the assembly with Lutz Roeder's Reflector tool. Poke
around in the Resources section, and see what's taking up so much
space.
 
Thanks Jon

I did that and I found all my *.rpt report files in the exe resource.

Is this normal ?

How can I remove it from my executable if this is not normal.

Thanks

HS
 
Hemang Shah said:
I did that and I found all my *.rpt report files in the exe resource.

Is this normal ?

How can I remove it from my executable if this is not normal.

To be honest, I haven't used reporting myself, but if you think they
would be needed at runtime, then it probably *is* normal to have them
there. If not, you could look at the properties of the file and change
them from "Embedded Resource" to something more suitable.
 
Yes Jon, I got that part, and now my exe is only 533 KB.

However it makes the reports untyped.

So i'm gonna dig around and see the repurcussions of it.

But i'm sure this is the suggested method. Can't have your exe growing to
50MB and I've only reached half of my reports!

Thanks :)
 
Back
Top