Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor NevenS's Avatar
    Join Date
    Aug 2008
    Posts
    62
    Hello,

    must I delete or in any other way deallocate aFrame in MCameraObserver::ViewFinderFrameReady(CFbsBitmap& aFrame) ?
    Must I delete the CFbsBitmap structure? Or the pixel data it's pointing to (aFrame.DataAddress()) ?

    Thanks, Neven

  2. #2
    Registered User david.caabeiro's Avatar
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678
    No, you must not. Ownership is not transfered to you.

  3. #3
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    Exactly, but you must copy it if you want to use it outside the callback because it will go out of scope.

    Sorcery

Similar Threads

  1. Delete function help
    By 1symbian1 in forum Symbian C++
    Replies: 30
    Last Post: 2008-10-30, 19:50
  2. Delete operator of a custom memory allocator
    By cflaviu in forum Symbian C++
    Replies: 3
    Last Post: 2008-03-26, 13:49
  3. crash for overloaded delete operator
    By mihirg in forum Symbian C++
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved