Monday, May 09, 2005

 

Tip 4: Need a larger or unknown length descriptor? Use HBufC.

Heap-based descriptors, HBufC, are allocated on the heap at run time. They can be used as local variables or as class members. As with all heap-based objects, memory leaks must be avoided through use of the cleanup stack - for local variables - or deleted by a destructor if ownership is through a member variable.

There's more about HBufC in the FAQ blog here.

This page is powered by Blogger. Isn't yours?

Google
WWW Top Tips for Descriptors