Jump to content
  • Advertisement
Sign in to follow this  
incertia

How much will Windows hate me if I don't use RemoveProp

This topic is 1933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently found a good way to send a useful pointer to WndProc through the use of SetProp() for use throughout the entire program loop, but I never actually removed it because I never found a good place to. So I'm wondering bad the consequences are going to be if I don't use RemoveProp().

Share this post


Link to post
Share on other sites
Advertisement
While I've never used these properties I would imagine the property list automatically get cleaned up when the associated window closes. Just to be on the safe side though I would be inclined to remove properties as part of the windows close code at the very least.

Share this post


Link to post
Share on other sites

Properties are automatically cleaned up at window destruction time, specifically WM_NCDESTROY.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!