Sign in to follow this  

[.net] PaintEventArgs ARRRGH!

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

This topic is 4836 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this