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.