Discussion Board

Results 1 to 2 of 2

Thread: Delete

  1. #1
    Regular Contributor
    Join Date
    Jul 2009

    Question Delete

    How to delete the following objects..

    TFileName KDirPath;
    TFindFile findFiles( iFsSession );
    RArray<TEntry> iFileList;


  2. #2
    Registered User
    Join Date
    Aug 2003
    Oulu, Finland

    Re: Delete

    T classes used as automatic or member variables (i.e. not allocated with operator new) do not need to deleted explicitly. They are automatically disposed of properly when the stack frame or containing class is freed. By convention, T classes do not own any external resources and never have explicit destructors.

    To clean up resources allocated by an RArray, call RArray::Close().


Similar Threads

  1. Overload delete
    By lancemachine in forum Symbian
    Replies: 6
    Last Post: 2009-07-23, 15:27
  2. Client exit when new sms(general sms, not related with APP) comes,
    By sanjeevmehtaubi in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-04-22, 16:06
  3. crash for overloaded delete operator
    By mihirg in forum Symbian
    Replies: 2
    Last Post: 2007-10-09, 12:08
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. Creating and Delete databases
    By -kevbo- in forum Symbian
    Replies: 1
    Last Post: 2001-12-13, 12:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts