Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arbitrary polygons crash -[NSBezierPath stroke]



Source code for two screensavers and an application are available at

http://bersearch.com/PrivateTechSupport/Circles/crashingpolygon.zip

One screensaver shows several polygons that crash -{NSBezierPath stroke. The
other screensaver generates and maintains random polygons. Within 5 - 30
minutes one of the randomly generated polygons will crash -stroke. The
application attempts to use the same polygons to crash -stroke; these
polygons do _not_ crash -stroke from within the application.

Thanks again.

Tom Bernard
email@hidden


on 6/28/06 4:26 AM, Uli Kusterer at email@hidden wrote:

> Am 28.06.2006 um 11:03 schrieb Tom Bernard:
>> If you look again, you will see that while I am enumerating
>> executionList, I
>> am modifying objectArray, a different NSArray. I do it this way to
>> avoid the
>> problem you cite.
> 
>   Ah. Oops. You're of course right.
> 
>> And if I were stomping memory, the stomped memory would cause a crash
>> regardless of whether I stroked or filled the polygon; as I said
>> earlier,
>> the crash only occurs when I stroke the polygon.
> 
>   Not necessarily. Depends on *what* memory you're stomping. You may
> be running over some code path only used by NSBezierPath -stroke in
> this particular case.
> 
>> I have written a skeleton screensaver that illustrates the problem;
>> I will
>> post it within the next day.
> 
>   That might help tracking it down.
> 
> Cheers,
> -- M. Uli Kusterer
> http://www.zathras.de
> 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Arbitrary polygons crash -[NSBezierPath stroke] (From: Uli Kusterer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.