Skip to main content.
October 30th, 2008

Generic GDI+ error

I know you’ve seen this error working on .NET.

Just sharing the experience: in my case I was just creating too many Image’s data structures without disposing them. The .NET garbage collector isn’t intelligent enough (or isn’t given enough data) to know that sometimes it’s better to dispose certain data structures even if the memory isn’t full (in the case of this data structure I suppose the problem is that Windows leaves only a buffer of a certain size for all the images of a program).

Posted by mattia as dotnet c# gdi at 5:22 PM CET

No Comments »