Re: finding out if pointer to memory is valid

Discussion in 'C++' started by Alexander Terekhov, Jun 27, 2003.

  1. Schelli wrote:
    >
    > ok, thx for those posts, i was not sure if there is a way to know it,
    > because as i said, codeguard knows, but i think he tracks memory and
    > stuff in some ways i cant. the reason i am asking is, that it would
    > maybe more elegant to code it like this, if it is possible. but since
    > its not i am using the old methods i used before.
    >
    > I already coded the interface a way, that it got pointers to all
    > structures that point to it, so if i destroy the structure it will use
    > that list first and set all pointers to itself to NULL before it's
    > destroying itself.


    http://www.boost.org/libs/smart_ptr/weak_ptr.htm

    regards,
    alexander.
    Alexander Terekhov, Jun 27, 2003
    #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. Ron Natalie
    Replies:
    0
    Views:
    739
    Ron Natalie
    Jun 26, 2003
  2. Sin
    Replies:
    1
    Views:
    1,078
    Ron Natalie
    Jun 26, 2003
  3. Dhruv
    Replies:
    0
    Views:
    690
    Dhruv
    Jun 27, 2003
  4. Ron Natalie
    Replies:
    0
    Views:
    768
    Ron Natalie
    Jun 27, 2003
  5. sfs
    Replies:
    3
    Views:
    299
Loading...

Share This Page