Chapter 4. Memory Management

CORBA provides a rich variety of data types, including a number of compound types such as structs, sequences, unions, and arrays. These complex data types tend to be of variable size, so it is often appropriate to allocate them on the free store (heap allocation) using new. The CORBA programmer has to understand where to allocate memory for the CORBA data and, more importantly, where to deallocate the memory. In other words, the programmer needs to have an understanding of CORBA memory management.

The issue of memory management is one that specifically affects C++ programmers. The flexibility of allocating memory on the free store brings with it the responsibility of freeing the memory at the appropriate time. Java ...

Get Pure CORBA 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.