[Openmcl-devel] Re: [Bug-openmcl] NSViewHierarchyLock Assertion failure
Raffael Cavallaro
raffaelcavallaro at mac.com
Wed May 12 22:13:25 PDT 2004
On May 12, 2004, at 10:00 PM, Gary Byers wrote:
> Checking isVisible isn't 100% reliable: the fact that the window
> was visible when you checked is no guarantee that it'll continue
> to be visible a few cycles later (the user may have clicked the
> close box in the interim.)
Yes, that's clear. I've added a windowWillClose method. If that could
be used to reliably kill a thread that the drawing is taking place in,
that might work, but I haven't figured out how to do that. I tried
process-run-function to start the animation, and process-kill called
inside the window-will-close method, but that doesn't stop the crash.
As it is now, I just use window-will-close to set a flag named
*window-open* which gets checked before each redraw, and at the top of
the animation loop.
>
> It seems to indicate that ANIMATE is trying to draw to a window
> that doesn't exist anymore.
Yeah, that's what I suspected.
> I'd be interested; I don't think that the ways that I'd want to change
> it would obfuscate things too much ...
Any changes would be welcome. You obviously understand both the OpenMCL
and Cocoa runtimes *way* better than I do.
Here's tiny-loop.lisp:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1229 bytes
Desc: not available
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20040513/43c2e955/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tiny-loop.lisp
Type: application/text
Size: 6098 bytes
Desc: not available
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20040513/43c2e955/attachment-0001.bin>
-------------- next part --------------
Thanks, once again, for all of your efforts. I must sound like a broken
record, but I really do appreciate all the effort you put into OpenMCL.
regards,
Raf
Raffael Cavallaro, Ph.D.
raffaelcavallaro at mac.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 266 bytes
Desc: not available
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20040513/43c2e955/attachment-0002.bin>
More information about the Openmcl-devel
mailing list