Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:50, 26 November 2007.

How to create an instance of a T–class into heap with a new operator

From Forum Nokia Wiki

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 cleanup stack, assuming that they do not contain any pointers or references to external objects. The cleanup stack handles the cleanup simply by calling User::Free().
  • Member variables are not zeroed automatically on construction. Only CBase’s new operator zeroes members.
Related Discussions
Thread Thread Starter Forum Replies Last Post
关于new(ELeave) fn_wyq Symbian 8 2006-09-25 10:22
Maximum Heap Size miguelbl General Symbian C++ 3 2008-06-05 12:42
Converting a C++ string to TDesC wonderland7 General Symbian C++ 3 2002-06-17 02:59
Java heap size in E61i chrise00 Mobile Java General 15 2007-09-24 15:31
How to increase the HEAP Size hmleung General Symbian C++ 7 2006-10-27 11:20
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX