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: Alert box locks up app.




On Mar 1, 2005, at 11:44 AM, Russ wrote:

I am calling CreateStandardAlert then RunStandardAlert. It works fine some of
the time, but when this alert code runs when a dialog box is already being
displayed with its own message loop, the alert window appears and looks OK, but
it is impossible to click any of the buttons, and the only alternative is to
Force Quit.

Is this other dialog box above or below (in z-order) the alert displayed by CreateStandardAlert?


The Dialog Manager, which is used by RunStandardAlert, requires that the alert be the active window; it's possible that this is not the case for some reason (although it should happen automatically). You could ssh into your machine while your app is in this state, attach with gdb, and use "p/x (void*)ActiveNonFloatingWindow()" to see what the active window is at that moment. If it's not the alert, then that would explain why the alert is unresponsive.

-eric


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

This email sent to email@hidden
References: 
 >Alert box locks up app. (From: Russ <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.