×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Placement new in Symbian

    Hello everyone,

    Can anyone tell me if Placement new is supported in Symbian?

    My goal is control the creation of objects to a specific area of memory and for that I have overloaded the new operator.

    Thanking you guys in advance.

    Regards,
    Kishore

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: Placement new in Symbian

    Check e32base.h and .inl for example, but you can find more hits via simply searching for operator new in epoc32\include.

  3. #3
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: Placement new in Symbian

    Thanks for prompt reply.
    If I have interpreted correctly default new on symbian doesn't throw like standard C++ and will return 0 (NULL) on failure. If new should leave we should pass it ELeave as argument. Is that right?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: Placement new in Symbian

    Yes, actually there are several new-s defined in the SDK, and only a few of them (the ones expecting a TLeave argument) leave.
    Practically you can do anything you want, especially since a placement new operation will obviously not run out from memory in itself.

Similar Threads

  1. Symbian C++ or MDIP: some newbie questions
    By sgalmeida in forum Symbian
    Replies: 2
    Last Post: 2006-12-30, 08:57
  2. A little survey regarding Java vs Symbian C++
    By Olnex in forum Mobile Java General
    Replies: 0
    Last Post: 2006-11-01, 09:00
  3. Please release installable D_EXC for Symbian 9!
    By perrett in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2006-05-10, 09:51
  4. Replies: 2
    Last Post: 2003-08-19, 16:39
  5. setting of Series 60 MIDP SDK for Symbian OS version 1.2 for networking
    By servigo in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2003-07-31, 07:47

Posting Permissions

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