Increase storage for Windows Mobile 5 emulators

I use the Microsoft Sync Framework to synchronize a SQL Server database with a SQL Compact SDF file on a Windows Mobile 5 emulator. We have a 2 gigabyte SD card on the device on which we are deploying, so we would like to save our database file. However, when I map the shared folder as a memory card in the Windows Mobile 5 emulator, the SQL Compact engine cannot create or modify the database file on the associated memory card due to an error. Therefore, to get around this during development on the emulator, I was just going to store the database on the internal device, however it was limited to 32 MB, and I can not find a way to increase it. Does anyone know how to increase the space on the emulator. I am talking about memory space, not RAM :).

Otherwise, does anyone know how to get past the error when you cannot have the SQL Compact database file on the memory card in the emulator?

Thanks!

+1
source share
4 answers

In http://forum.xda-developers.com/showthread.php?t=549675 you will find a driver for the emulator, which installs a RAM disk, which for the emulator is considered as an external memory card, but does not suffer from problems with displaying the folder. I checked with the SD Compact SQL file stored in RAMDisk and it works like a charm. I used it as a 64 megabyte drive, but presumably it can handle up to 256 MB.

+4
source

.

, . Windows Mobile 5.0

, , , , , "-", - .

, memsize, :

<MemSize Reconfigurable="true">256</MemSize>

, 256, , .

, ( , , " " ) cfg.

, .

+3

, , . , , , HP , , , , .

0

Microsoft V3 ( , "\ Microsoft Device Emulator\1.0" ), Windows Mobile 5, , "deviceemulator" , . , , memsize. > 256 . , / . , . , SDF .

Device Emulator

Memory size must be a value between 64 and 256.

Command Line Option Help

binfile - Filename of the binfile to be loaded by the emulator.
@responsefile - Filename to XML response file.
/a - Keeps emulator window always on top.
/battery - Emulates running from a battery instead of AC
/batterycharge percentage - Emulated battery charge percentage
/c - Creates and displays a console window to show output from Serial Port 1.
/cpucore - ARMv4 or ARMv5. Default is ARMv4.
/cpuoptions - A combination of (T)humb,D(ebug),I(nternetworking),M (Long Multiply),E (DSP). Of these, T,D,I will always be set.
/defaultsave - Use the VMID as the saved state name and place the saved state file in the per user directory.
/flash filename - Enables flash-memory emulation and specifies flash-memory storage filename.
/h - Sets host-only routing for network packets.
/hostkey keyname - Specifies host key, where keyname can be 'None', 'Left-Alt', or 'Right-Alt'.
/language LangID - Specifies the UI language, where LangID is a decimal.
/memsize size - Sets emulated RAM size, where size is in megabytes.
/nosecurityprompt - Do not prompt when enabling potentially unsafe peripherals when restoring from saved state.
/n [macaddress] - Enables CS8900 network adapter where optional macaddress specifies which host adapter the card will bind to.
/p [macaddress] - Enables NE2000 PCMCIA network adapter, where optional macaddress specifies which host adapter the card will bind to.
/r address - Specifies ROM file base address(in hexadecimal).
/rotate angle - Rotates the display by degrees, where angle can be 0, 90, 180, or 270.
/s filename - Specifies the save-state filename.
/sharedfolder directoryname - Mounts directoryname as a storage card.
/skin filename - Loads the specified skin file.
/tooltips state - Enables or disables tooltips, where state is 'ON' or 'OFF'.
/ u0 serialport / u1 serialport / u2 serialport - Maps guest serial ports 0-2 to Windows serial ports.
/ vfp - Vector Floating Point coprocessor: true or false. Default is false.
/ video xx - Specifies screen size and bit-depth.
/ vmid {GUID} - Specifies the VMID GUID.
/ vmname name - Specifies the window title.
/ z - Zooms the display to 2x normal size.
/ speakerphone - {[SpeakerPhone] [Headset] [Carkit]} - Bitmapped number between 0-7 specifying Speakerphone, Headset, Carkit mode.

Ok   
0
source

Source: https://habr.com/ru/post/1723084/


All Articles