For Programmers: Free Programming Magazines  


Home > Archive > C# > March 2004 > Re: Pen's DashPattern property memory problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Pen's DashPattern property memory problem
Tristan

2004-03-28, 10:28 pm

tristan_sehgal@yahoo.co.uk (Tristan) wrote in message news:<7f5eb42c.0402201006.31f3579@posting.google.com>...
> Hi,
>
> When I create a new Pen and take a look at the DashPattern
> property it reads <System.OutOfMemoryException>.
>
> Which is a problem because I need to loop round an array
> of pens checking their DashPattern array lengths.
> I can't even test the DashPattern property to
> see if it's null.
>
> I can set the DashPattern but for some pens I don't
> want to do this!
>
> Is this a Microsoft bug?


Ok, just realised you could do a check to see if the
DashStyle has been set to Custom as a workaround,
I still don't see why DashPattern isn't just set to
null in other cases though :|

Tristan.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com