Summary

Once you begin using the more complicated structured types that CORBA has to offer, you inevitably have to deal with dynamically allocated memory. The CORBA C++ mapping gives you a hand with this by providing the _var types. _var types implement smart pointer functionality that helps you to avoid memory leaks. Even so, the issues surrounding memory management in a distributed system can be bewildering.

Most of the rules in this chapter could be described as nothing more than good practice in C++ programming. What is unusual about distributed programming, however, is that you are forced to work with heap-allocated data practically all of the time (with the consequent danger of memory leaks). By contrast, a typical standalone application ...

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.