[Mono-dev] libgdiplus linecap issue

Dick Porter dporter at codicesoftware.com
Fri Oct 15 09:37:00 EDT 2010


On Mon, 2010-10-04 at 18:43 -0700, Francis A. Bausch wrote:
> unfortunately i was not carefui enough in my analysis.
> 
> this is my crash:
> 
> [Error, 10/4/2010, 9:21:22 PM] UNHANDLED EXCEPTION:
> System.ArgumentException: A null reference or invalid value was found [GDI+ stat
> us: InvalidParameter]
> 
> if otherend_x = x, or otherend_y=y, the calculation of slope may result in division by zero.

I've committed a fix for this.  Please check that it fixes the issue for
you, as the previous code didn't crash for me even with the
divide-by-zero.

- Dick




More information about the Mono-devel-list mailing list