Reprint methods for extending the storage space of the Windows Mobile Emulator

Source: Internet
Author: User

Ways to extend the storage space of the Windows Mobile Emulator

In the early days of Windows Mobile application development, it was possible to debug using the SDK's own emulator, which provided a convenient way for our developers. In general applications, the size of the footprint is hundreds of k, or a few m, which is not a problem to debug on the simulator. However, sometimes we have to install the program or need to debug the program more than a certain size, if you follow the default system settings, can not be debugged. Why? It is because we have packaged more DLLs and libraries, which makes the system run out of storage space. With this article, you can learn how to get rid of the limitations of the simulator storage space.

1. Windows Mobile Emulator storage space Explorer

First, let's look at the default storage space for the Windows Mobile emulator. Below I have listed only PocketPC 2003se Emulator, Windows Mobile 5.0 PocketPC R2 Emulator, Windows Mobile 6 Professional Emulator and Windows Mob Ile 6.5 Professional Emulator this 4 simulator memory Setting:

Figure 1: Memory settings for 4 WM simulators

From Figure 1 we can see that in addition to the PocketPC 2003SE emulator can allow the user to adjust the size of the storage and program space, the storage size of the other 3 simulator is 32M, the user cannot adjust And the program size is different. Let's take a look at how to extend the memory of these different versions of the WM Simulator.

2. WM Simulator Memory Extension method

2.1 Program Memory Extension method

For the program storage part of the simulator, we can change it through the settings of Visual Studio, which is suitable for all 4 types of simulators. Here's how to do this by selecting the target emulator using the tools–> Options--------Device Tools--Devices menu, using the Windows Mobile 6 Professional emulator as an example, click on the right " Properties menu, then select "Emulator Options" in the Pop-up dialog box and fill in the required storage size in "Specify RAM size", here I fill in 256. After restarting the simulator, you will be able to see the program size change. As shown in 2:

Figure 2: Change program space size using emulator options

2.2 How to extend with storage card

Sometimes we need to install some applications on the simulator to test, this can be extended by storage card, this method for the above 4 types of simulators are applicable. To do this, select the File->configure->general->shared folder for the emulator and select one of the local PC's folders to map to the storage Card of the emulator. As shown in 3:

Figure 3: Extending with the storage card

2.3 Changing the program debug directory to expand

We established the Windows Mobile project with the default program debug path for my Device->program Files, as shown in 4:

Figure 4: Program debug Default Path

But sometimes, the applications we debug may take up a lot of space, and if you exceed the storage limit (32M), then you certainly won't be able to debug. Since the size of the storage 32M, already hard code, then we have no way to change the path of the program debugging, so that it also mapped to the local PC folder? The answer is yes. Here's how: Click "Project Properties" (Note not solution properties), change the output File Folder in device, for example, "\storage card\***", When you debug the program, it will be downloaded to the storage card, and the storage card has been mapped to the local PC by method 2.2 to the file. So we don't have to be constrained by the 32M storage space. As shown in 5:

Figure 5: Changing the program Debug directory to expand

2.4 PocketPC 2003se Emulator Change the ratio of storage and program

In PocketPC 2003se emulator, if you need to debug a larger program, we can increase the RAM space by using method 2.1, and then change the ratio of storage and programs to enlarge storage. As shown in 6:

Figure 6:pocketpc 2003SE Emulator expansion Storage

3. Summary

This article summarizes 4 ways to expand the Windows Mobile storage space, especially the third method, in the debug phase, if the debugging application occupies a large space, through this method can be successfully debugged. I hope that these methods I summarize here are useful for the vast majority of Windows Mobile development enthusiasts.

Reprint methods for extending the storage space of the Windows Mobile Emulator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.