System.Drawing.Region's IDisposable is not used

Mar 25, 2011 at 11:04 PM

Thank you for the great utility and source code.

I noticed that the private property OffScreenRegion returns a System.Drawing.Region, but the caller doesn't wrap this in a 'using' statement or otherwise call IDisposable. If someone were to exercise that code programmatically, generating thousands of Regions, perhaps there could be a problem with not releasing the underlying Win32 handles in a timely manner.

Apr 21, 2014 at 2:11 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 21, 2014 at 2:14 AM
Thanks for your suggestion! I hadn't been monitoring this site for a long while, but finally saw this post. I've fixed the issue, and will be including this patch in the next update I upload.

Thanks again!