• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Arbitrary polygons crash -[NSBezierPath stroke]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arbitrary polygons crash -[NSBezierPath stroke]


  • Subject: Re: Arbitrary polygons crash -[NSBezierPath stroke]
  • From: Tom Bernard <email@hidden>
  • Date: Fri, 30 Jun 2006 02:23:49 -0600

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:

This email sent to email@hidden

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

  • Prev by Date: Re: BinHex for PPC and Intel
  • Next by Date: First Responder target?
  • Previous by thread: Re: Arbitrary polygons crash -[NSBezierPath stroke]
  • Next by thread: using NSURLConnection to get only the HTTP header
  • Index(es):
    • Date
    • Thread