I've got a small app (658 kb) that I need to test on the Pocket PC 2003
Emulator.

By default, the emulator only includes 24 MB of RAM.

Whenever I try to run my app through VS2005, it copies over whatever it
needs to run, but before my app can start, I get "Error 0x80070070: There is
not enough space on the disk."

When I go to the emulator and look at the list of programs in storage memory
under the "Remove Programs" applet, there are no programs listed.

Whenever I go to my BIN folder to look at what all is being copied over, I
see a host of DLLs that do not even need to be there! The biggest one is
System.Web.dll, at 5,304 KB, and I do not reference that in my project
anywhere!

My question is 2 part, and I'll entertain answers on either or both:

1) How to I get these unnecessary DLLs to stop being included in my output
folders (Debug or Release)? They are *not* listed in my project list of
References, and the files that are listed (mscorlib, System, System.Data,
System.Data.SqlClient, System.Drawing, System.Windows.Forms, and System.Xml)
are not included in the executable for my app.

2) How do I increase the disk space available to my emulator? Our PPC
devices all have 64 MB, so I'd like to increase the emulator memory to match.
My RAM size is set to double that (128) in VS2005's "Tools > Options > Device
Tools > Devices > Pocket PC 2003 SE Emulator Properties... > Emulator
Options...", but still my emulator only has 24 MB.

Could someone please help me out? I have all the service packs and updates
from MS, and I've rebooted, shut down the computer, etc. I can't figure this
one out.

Re: Reduce EXE Size for Emulator by Chris

Chris
Mon Jun 30 10:28:42 CDT 2008

Your app has a reference to a desktop assembly. THat reference is causing a
bunch of desktop assemblies to be pushed to the device during deploy. Even
if you had enough space for them, it would fail to launch and debug. You
need to go through every reference in the solution project (inclusing
mscorlib, System, etc) and make sure they're all set for CF assemblies and
that any 3rd party DLL is a CF assembly.

-Chris


"jp2msft" <jp2msft@discussions.microsoft.com> wrote in message
news:53F96001-77F0-4685-B404-065A158EF8A1@microsoft.com...
> I've got a small app (658 kb) that I need to test on the Pocket PC 2003
> Emulator.
>
> By default, the emulator only includes 24 MB of RAM.
>
> Whenever I try to run my app through VS2005, it copies over whatever it
> needs to run, but before my app can start, I get "Error 0x80070070: There
> is
> not enough space on the disk."
>
> When I go to the emulator and look at the list of programs in storage
> memory
> under the "Remove Programs" applet, there are no programs listed.
>
> Whenever I go to my BIN folder to look at what all is being copied over,
> I
> see a host of DLLs that do not even need to be there! The biggest one is
> System.Web.dll, at 5,304 KB, and I do not reference that in my project
> anywhere!
>
> My question is 2 part, and I'll entertain answers on either or both:
>
> 1) How to I get these unnecessary DLLs to stop being included in my output
> folders (Debug or Release)? They are *not* listed in my project list of
> References, and the files that are listed (mscorlib, System, System.Data,
> System.Data.SqlClient, System.Drawing, System.Windows.Forms, and
> System.Xml)
> are not included in the executable for my app.
>
> 2) How do I increase the disk space available to my emulator? Our PPC
> devices all have 64 MB, so I'd like to increase the emulator memory to
> match.
> My RAM size is set to double that (128) in VS2005's "Tools > Options >
> Device
> Tools > Devices > Pocket PC 2003 SE Emulator Properties... > Emulator
> Options...", but still my emulator only has 24 MB.
>
> Could someone please help me out? I have all the service packs and updates
> from MS, and I've rebooted, shut down the computer, etc. I can't figure
> this
> one out.


Re: Reduce EXE Size for Emulator by jp2msft

jp2msft
Mon Jun 30 13:17:00 CDT 2008

Thank God!

I couldn't for the life of me figure that one out.

My app is up and running again.

Mr. Tacke, you are a life saver! Where is your book? I'll buy it!

"Chris Tacke, MVP" wrote:

> Your app has a reference to a desktop assembly. THat reference is causing a
> bunch of desktop assemblies to be pushed to the device during deploy. Even
> if you had enough space for them, it would fail to launch and debug. You
> need to go through every reference in the solution project (inclusing
> mscorlib, System, etc) and make sure they're all set for CF assemblies and
> that any 3rd party DLL is a CF assembly.
>
> -Chris