Tips to decrease the size of the Exe or Installation

G

Guest

Hi,
We have build a application which has about 50 forms and more than 20 images
that are being displayed.

The size of the installation folder on the device with the exe and the
support dlls is more than 3MB.

Can some one suggest some tips to reduce the size or suggest me some place
where i can find this information.

Thanks,
Murthy
 
G

Guest

I think the question really is "why do you need to decrease the size?" What
problem is the current size posing?
 
G

Guest

We are getting Out of Memory Exception in some of our forms [ Where we are
updating a picture box with the Photos [No. 10] from a folder based on User
Selection -- We are using FileInfo[] for this...]
We thought that the size of the Application is one of the reasons.

Also we are some times getting VS is Busy Error and VS2005 Hangs...
We were forced to restart VS 2005...

Our Application is an Windows Mobile 5.0 Pocket PC Application for a Symbol
Device.

Regards,
Murthy....
 
G

Guest

I seriously doubt the app size has any bearing on it. Managed assemblies
are loaded as memory mapped files, so if you have it all as 1 or 100
assemblies, the space they take up will be the same. If you're getting OOM,
it's likely the GCHeap running out of space. RPM would be the first place to
start to see what's happening, then looking at keeping less tuff in the Heap
based on what you see.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



Murthy said:
We are getting Out of Memory Exception in some of our forms [ Where we are
updating a picture box with the Photos [No. 10] from a folder based on
User
Selection -- We are using FileInfo[] for this...]
We thought that the size of the Application is one of the reasons.

Also we are some times getting VS is Busy Error and VS2005 Hangs...
We were forced to restart VS 2005...

Our Application is an Windows Mobile 5.0 Pocket PC Application for a
Symbol
Device.

Regards,
Murthy....

I think the question really is "why do you need to decrease the size?"
What
problem is the current size posing?


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
 
G

Guest

I Tried RPM on one of the devices...But the device became very slow after
that...
We are no longer able to use that device for testing...

Is there any other better tool...

I seriously doubt the app size has any bearing on it. Managed assemblies
are loaded as memory mapped files, so if you have it all as 1 or 100
assemblies, the space they take up will be the same. If you're getting OOM,
it's likely the GCHeap running out of space. RPM would be the first place to
start to see what's happening, then looking at keeping less tuff in the Heap
based on what you see.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



Murthy said:
We are getting Out of Memory Exception in some of our forms [ Where we are
updating a picture box with the Photos [No. 10] from a folder based on
User
Selection -- We are using FileInfo[] for this...]
We thought that the size of the Application is one of the reasons.

Also we are some times getting VS is Busy Error and VS2005 Hangs...
We were forced to restart VS 2005...

Our Application is an Windows Mobile 5.0 Pocket PC Application for a
Symbol
Device.

Regards,
Murthy....

I think the question really is "why do you need to decrease the size?"
What
problem is the current size posing?


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Hi,
We have build a application which has about 50 forms and more than 20
images
that are being displayed.

The size of the installation folder on the device with the exe and the
support dlls is more than 3MB.

Can some one suggest some tips to reduce the size or suggest me some
place
where i can find this information.

Thanks,
Murthy
 
H

Hilton

My best bet:

The large size is a result of the images you have embedded in the EXE/DLLs.
Make the images smaller, use JPG is lossy is OK, or PNG if you require
lossless - use 8-bit palettized if possible.

To prevent the Out Of Memory exception, ensure that for every "new Bitmap
(...)" you have a "bmp.Dispose()" - one of my major pet peeves of MS's
implementation , but nevertheless, the memory management ball is back in
your court.

Hilton


Murthy said:
I Tried RPM on one of the devices...But the device became very slow after
that...
We are no longer able to use that device for testing...

Is there any other better tool...

I seriously doubt the app size has any bearing on it. Managed assemblies
are loaded as memory mapped files, so if you have it all as 1 or 100
assemblies, the space they take up will be the same. If you're getting
OOM,
it's likely the GCHeap running out of space. RPM would be the first place
to
start to see what's happening, then looking at keeping less tuff in the
Heap
based on what you see.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



Murthy said:
We are getting Out of Memory Exception in some of our forms [ Where we
are
updating a picture box with the Photos [No. 10] from a folder based on
User
Selection -- We are using FileInfo[] for this...]
We thought that the size of the Application is one of the reasons.

Also we are some times getting VS is Busy Error and VS2005 Hangs...
We were forced to restart VS 2005...

Our Application is an Windows Mobile 5.0 Pocket PC Application for a
Symbol
Device.

Regards,
Murthy....

:

I think the question really is "why do you need to decrease the size?"
What
problem is the current size posing?


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Hi,
We have build a application which has about 50 forms and more than
20
images
that are being displayed.

The size of the installation folder on the device with the exe and
the
support dlls is more than 3MB.

Can some one suggest some tips to reduce the size or suggest me some
place
where i can find this information.

Thanks,
Murthy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top