I am running out of memory when deploying a vb 2005 application (with sql ce). So I want to increase the emulator memory
Using VS 2005 I have gone into tools>options>device tools>devices>Pocket PC 2003 SE Emulator>Properties>Emulator Options> .. tick Specify RAM Size, and put 64, 128 or 256 in the ram size box.
Then I kick off the emulator either by running the vb project or by running it from "Device Emulator Manager" - my setting seems to be always ignored and the device memory is showing as 29.70MB. A hard reset of the running device does not solve the problem. Neither does rebooting the PC.
Any ideas
thanks
note I am able to kick off the emulator manually, using this command line....
"C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe" "C:\Program Files\Microsoft Visual Studio 8\SmartDevices\Emulators\Images\PocketPC\2003\1033\PPC_2003_SE_WWE_ARMv4.bin" /n /s "c:\savedstate.bin" /skin "C:\Program Files\Microsoft Visual Studio 8\smartdevices\Skins\PocketPC_2003\PocketPC_2003\1033\PocketPC_2003_Skin.xml" /memsize 256
... and that successfully increases the memory - -- errr but I cant see any way of attaching to that to get vs to deploy the app onto it and deploy sqlce etcetc.. so still stuck! When I run the app with the above emulator running, a second emulator appears with 29.70mb ram as before..

How to Increase the Pocket PC 2003 Emulator Device Memory ?
JonH66
Sorry Daniel, this was a long time ago and I have all but forgotten how to work with the emulator (good for me).
By the way. Try shutting down the emulator, then deleting the file, and then cold booting it.
DaveParr
I could increase. Thank You.
SiberLynx
TheMadMonk
Thank you for ur solution. I tried but I could not find any change in emulator after hard reset. Even I tried but closing emulator. then also the result is same. I first renamed the file(which u have mentioned) and then tried with deletion. But I could not. Can you plzzz guide me.
Thanks in Advance,
Hersheys98
Hi
I suggest three solution:
1- You can use the sqlceengine compact to compact your database and win more space memory. for that you can refer to:
http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceengine.compact.aspx
2- You can use a desktop folder as an external storage memory for the emulator and there you copy your databsae file. To can do that under the option "configure" on the menu options of the emulator window.
3- Clean your emulator by unstalling useless prgrams, removing cokies and temporary files wich are created mainly by internet browsing.
Salem
Hammadi
Pradeep T
ok answered own question :::: I had to rename the file
C:\Program Files\Microsoft Visual Studio 8\SmartDevices\Emulators\Images\PocketPC\2003\VGAPortrait\1033\PPC_2003_SE_VGA_WWE_ARMv4.bin
just to move it out of action. I think there's a bug with clear saved state It just wasnt clearing.
Once the file is deleted or renamed the emulator picks up the new options ok, and cold boots as if it were hard reset.
I had some problems with this but once I renamed the file back it seemed ok !
Alex Farber
Hi Paul,
Could you provide a little more detail on your solution please I'm having exactly the same issue, but renaming the PPC image just causes the emulator to balk and not load ... I've tried playing around with the DESS file (renaming, deleting, copying from "All Users") to no avail ... what else did you do to resolve this issue
Thanks,
Daniel