[Mono-winforms-list] Matrix memory management in GDI+ bug

Jonathan Gilbert 2a5gjx302@sneakemail.com
Wed, 16 Mar 2005 15:38:43 -0500


At 07:40 PM 16/03/2005 +0100, Jordi Mas wrote:
>El ds 12 de 03 del 2005 a les 13:15 -0500, en/na Jonathan Gilbert va
>escriure:
>> If Microsoft's implementation allows the Matrix to be used after it has
>> been Dispose()d, this would tend to indicate that they are actually storing
>> the matrix in managed memory, [snip]
>
>Microsoft implementation does NOT allow to use a disposed Matrix. What
>happens is that before disposing it was assigned to Graphics.Transform
>and we had a bug there at libgdiplus level that was causing the matrix
>to be point it to instead of copied.

Ahh, I see :-) The way the original question was worded made it sound like
the poster was trying to do this:

Matrix q = ...;
q.Dispose();
my_graphics.Transform = q;

Jonathan Gilbert