Jump to content
  • Advertisement
Sign in to follow this  

[.net] PaintEventArgs ARRRGH!

This topic is 5420 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

This is probably a newb question but, I am using Managed DirectX and I am invalidating OnPaint() to draw each frame for my engine and it all works great. However, when I profile my app with the CLR profiler I see that each frame it is allocating space in the heap for PaintEventArgs and I can't seem to do anything about it. Do I have to use a message pump? I would like to avoid using unsafe code as much as possible. Is there a way for me to manually deallocate the PaintEventArgs? Or not allocate them in the first place?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!