Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
This page was last modified 14:49, 29 October 2008.

TSS000198 - Creating an instance of a T–class into heap with a new operator

From Forum Nokia Wiki


ID TSS000198 Creation date April 7, 2005
Platform S60 platform
Series 80 platform
Devices
Category Symbian C++ Subcategory Coding idioms


Keywords (APIs, classes, methods, functions):

Overview

Creating an instance of a T–class into heap with a new operator

Description

It is possible to create an instance of a T–class with a new operator, but these precautions must be taken:

  • Instances of T–Classes can be safely placed into the CleanupStack, assuming that they do not contain any pointers or references to external objects. CleanupStack handles the cleanup simply by calling User::Free().
  • Member variables are not zeroed automatically on construction. Only CBase’s new operator zeroes members.

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia