unique pointer issue

Discussion in 'C Programming' started by George2, Feb 14, 2008.

  1. George2

    George2

    Joined:
    Feb 12, 2008
    Messages:
    108
    Hello everyone,


    Could anyone help to explain what does the two rules for unique pointer mean?


    http://msdn2.microsoft.com/en-us/library/aa367294(VS.85).aspx

    1.

    Especially confused about "before the call"

    Can use existing memory on the client without allocating new memory. When a unique pointer changes during a call from one non-NULL value to another, the pointer is assumed to point to a data object of the same type. Data returned from the server is written into existing storage specified by the value of the unique pointer before the call.

    2.

    Can orphan memory on the client. Memory referenced by a non-NULL unique pointer may never be freed if the unique pointer changes to NULL during a call and the client does not have another means of dereferencing the storage.


    thanks in advance,
    George
     
    George2, Feb 14, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. masood.iqbal@lycos.com

    Pointer-to-pointer-to-pointer question

    masood.iqbal@lycos.com, Feb 3, 2005, in forum: C Programming
    Replies:
    10
    Views:
    741
    Chris Torek
    Feb 4, 2005
  2. jimjim
    Replies:
    16
    Views:
    875
    Jordan Abel
    Mar 28, 2006
  3. ToshiBoy
    Replies:
    6
    Views:
    886
    ToshiBoy
    Aug 12, 2008
  4. bansalvikrant@gmail.com

    Pointer to pointer Vs References to Pointer

    bansalvikrant@gmail.com, Jul 2, 2009, in forum: C++
    Replies:
    4
    Views:
    1,325
    Fred Zwarts
    Jul 2, 2009
  5. Token Type
    Replies:
    9
    Views:
    391
    Chris Angelico
    Sep 9, 2012
Loading...

Share This Page