Tutorial: How can I save memory for. net programs to release memory in a timely manner during wince development?

Source: Internet
Author: User

During the WindowsCE development process, the device may easily report the error "insufficient memory" during the running process, and then it will crash.

The memory of my current device is 64 MB in total. After the CE system is started, it will occupy part of the memory. The program has fewer available memory.

The following describes what programs are mainly used in my project:

1. Real-time polling for reading cards.

2. synchronize data in real time and synchronize local data to the server through sokect. (You do not dare to use dataset to cache data every time you query data. It would be much better to use datareader. Every time you retrieve data from the database, you only dare to retrieve it one by one, if you select * and put it in the list, it is easy to crash ).

In the past, due to the development of. net programs under Win32, the memory was very large, and it was very rare to think about how to save memory and improve performance. So I am posting here to ask experts for advice:

How can I save memory usage in. NET development?

You can talk about this issue in terms of encoding.

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.