Chapter 12. Memory Management

While memory management may not rate as the most interesting subject for the majority of developers, it is important that your application use memory carefully. This is especially the case with Windows CE since devices have limited amounts of memory available to applications. Your application should allocate memory in the most appropriate way (that is from a heap, as static variables, or local variables on a stack) and ensure that memory is freed when finished with. In Windows CE, applications need also to respond to low-memory situations by carefully checking that memory allocations succeed and also by freeing up memory that is not currently essential. By doing this, an application becomes a good citizen in the ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.