Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: finding out if pointer to memory is valid

Reply
Thread Tools

Re: finding out if pointer to memory is valid

 
 
Alexander Terekhov
Guest
Posts: n/a
 
      06-27-2003

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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check whether malloc has allocated memory properly in case ifmalloc(0) can return valid pointer Shivanand Kadwadkar C Programming 83 01-08-2011 08:18 AM
Re: finding out if pointer to memory is valid Ron Natalie C++ 0 06-27-2003 03:36 PM
Re: finding out if pointer to memory is valid Dhruv C++ 0 06-27-2003 01:29 PM
Re: finding out if pointer to memory is valid Sin C++ 1 06-26-2003 09:56 PM
Re: finding out if pointer to memory is valid Ron Natalie C++ 0 06-26-2003 08:04 PM



Advertisments