Mailing Lists: Apple Mailing Lists

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

Crash in on changed handler



If I type quickly into a text field that is connected to

on changed theObject
...
end

I will sometimes get a crash (with an offer to sent it to Apple!). This appears to happen when the handler has not exited after processing the previous keystroke. I've put in code to test if the handler is entered before the previous invocation has returned, and it does happen sometimes. I would think ASS would deal with overlaps, but it does not. Am I missing something, or am I really limited to the length of time I can take inside this handler?

I've tried this, without success:

global flag
on changed theObject
if ( flag is true ) then
return -- not done
end
set flag to true
-- do the work here
set flag to false
end

Jeff
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



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.