← Back to team overview

kicad-developers team mailing list archive

Re: Handling SEGZONEs

 

On 9/26/2018 3:16 PM, Seth Hillbrand wrote:
> 
> 
> Am Mi., 26. Sep. 2018 um 11:57 Uhr schrieb Wayne Stambaugh
> <stambaughw@xxxxxxxxx <mailto:stambaughw@xxxxxxxxx>>:
> 
>     Seth,
> 
>     I think this is due to an unhandled exception in the file loading code.
>      If I open the board with a debug build of kicad, I get a warning about
>     the board being an old board file version and the board opens just fine.
>      With release builds, I don't see the board file version warning and it
>     immediately crashes.
> 
> 
> Hi Wayne-
> 
> That will be more luck of the draw in your memory management. 
> connectivity_algo.h:643 gets the filled polygon list, which in the case
> of SEGZONE is undefined.
> 
> -Seth

Why would a polygon list be created for a SEGZONE object?  JP, do you
have any thoughts on this?  As ugly as the old segment filling is, I
would prefer that we maintain accuracy.  If the user wants to delete the
segments and go with a polygon filled zone, that should be left up to
the user.

Wayne


Follow ups

References