On 10/16/09 2:17 AM, WareTo Development said:

>So we thought the best thing would be to force a garbage collection
>operation at a time of our choosing.  Normally, this occurs at Mouse
>up, after the user has finished his drawing. A split second of garbage
>collection then would be barely noticeable by the user.
>
>So, we looked for a call, and thanks to this list we found
>objc_collect (OBJC_EXHAUSTIVE_COLLECTION | OBJC_WAIT_UNTIL_DONE);
>.
>Unfortunately, this does not solve our problem. That call does not
>insure a garbage collection operation synchronously, nor shortly after
>one returns to the main event loops. It does seem to cause one a short
>time later, but by then the user might be drawing with the pen again.
>
>We saw that a couple other people complained about this call not doing
>what they expected, but this was a while back, and we have not seen
>any new discussions about it

In my experience, this has not changed in 10.6.1.
OBJC_EXHAUSTIVE_COLLECTION | OBJC_WAIT_UNTIL_DONE does not do what its
name implies.  Which is a real shame because it would be useful for debugging.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to