470,870 Members | 1,743 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

Can I delete a static pointer?

Can I delete a static pointer?
Nov 30 '07 #1
2 6864

"dolphin" <jd*******@gmail.comwrote in message
news:b2**********************************@i12g2000 prf.googlegroups.com...
Can I delete a static pointer?
You can call delete on a static pointer and release the memory it points to
if it indeed points to memory that was allocated. If you are intending on
calling delete on a static pointer that is shared amongst multiple objects
I'd be careful...

Nov 30 '07 #2
On Nov 30, 7:44 am, dolphin <jdxyw2...@gmail.comwrote:
Can I delete a static pointer?

Even if it's static, you need to manage the pointer - new/delete
Nov 30 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by A | last post: by
10 posts views Thread by n2xssvv g02gfr12930 | last post: by
27 posts views Thread by fermisoft | last post: by
16 posts views Thread by Martin Vorbrodt | last post: by
1 post views Thread by Gonçalo Rodrigues | last post: by
6 posts views Thread by mdinino | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.