摘要
WINCE系统内存配置较小,嵌入式软件如果出现内存泄露问题,将会导致系统的可用内存不足,甚至出现系统崩溃。为此针对WINCE操作系统内存的管理和应用,通过引入一个在实时更新动态图的过程中出现内存泄露的案例,阐述了关于内存管理和内存应用的重要知识点,包括内存模型和内存分配方式,分析了在该案例中出现内存泄露的原因,提出了与案例中出现的内存泄露相似问题的解决方法,并针对一般情况下如何防止内存泄露作了简单介绍,最后详细阐述了案例中为了优化内存所做的工作,对编程者有很好的指导作用。
Memory capacity allocation of WINCE system is relatively small,if memory leak in embedded software,it will cause the system to insufficient memory available and system collapse even. Aiming at memory management and memory application of WINCE operating system,this paper elaborates some crucial informations about memory modal and the way of memory allocation of Windows CE memory management and memory application by introducing a case that memory leak occurs in the process of updating dynamic graphs,and analyzes the causes of memory leak.This paper proposes solutions of processing memory leak and similar problem and briefly introduces how to prevent memory leaks in general,finally it elaborates in detail the work done in order to optimize memory ,methods mentioned in this paper is very useful for programmers.
出处
《电脑开发与应用》
2014年第4期33-36,共4页
Computer Development & Applications