473,414 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Size of executable

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
Nov 17 '05 #1
6 4115
43 MB or 43 kB? If 43 MB, that's astonishing!

You don't have any really large graphics in it, do you?
"Hemang Shah" <he****@hemang.net> wrote in message
news:rI********************@rogers.com...
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

Nov 17 '05 #2
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 ?
"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:eE*************@TK2MSFTNGP15.phx.gbl...
43 MB or 43 kB? If 43 MB, that's astonishing!

You don't have any really large graphics in it, do you?
"Hemang Shah" <he****@hemang.net> wrote in message
news:rI********************@rogers.com...
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


Nov 17 '05 #3
Hemang Shah <he****@hemang.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #4
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
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Hemang Shah <he****@hemang.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 17 '05 #5
Hemang Shah <he****@hemang.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #6
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 :)
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Hemang Shah <he****@hemang.net> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dave.harper | last post by:
I started learning C++ a few days ago, and I've run into a couple questions regarding what is included in the executable when the source is compiled... I've written a simple, 1-D rocket predicting...
79
by: syntax | last post by:
what is the size of a pointer? suppose i am writing, datatype *ptr; sizeof(ptr); now what does this sizeof(ptr) will give? will it give the size of the
3
by: codejunkie | last post by:
Hello, folks! Newbie question here: I just purchased Visual C++.NET 2003 Standard and have found the build sizes to be rather large. A simple "Hello World" executable (console) comes to 44Kb and...
2
by: scrodchunk | last post by:
I'm currently building a project in the gcc environment on unix and getting the simulation phase of my work done. After it's nice and clean, I'll be moving into an embedded environment and...
49
by: Sam | last post by:
Hi all, Is there a function in the standard library that can get the size of a file? Thank you very much. Sam.
3
by: linux_bp | last post by:
I had deleted my object files accidently. Now to analyse a core i need object files. If I recompile the same source code with imake on solaris, i m getting the binary of different size. Is it...
3
by: against.inex | last post by:
Hi, The following code snippet when compiled using gcc 3.3.5 creates an executable which is 6.9 KB in size. int main(){ int arr={0}; long arr2={0}; double arr3={0}; }
17
by: pkirk25 | last post by:
My little app to scan World of Warcraft auction scans now works in that it generates useful tables in CSV format that the user can do wahtever they like with. I created it as a console...
6
by: bobby | last post by:
hi group, Does the header file size or number in include(s) effect the size of executable file? In other world if i chose a large header file and include it with my source file does it increase...
9
by: raashid bhatt | last post by:
does having more variables increases the size of program.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.