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: NavDialogRun hangs



Have you tried using "sample <yourApp> 5" (from Terminal) while it's stuck? This will reveal where the system is spending its time.

Cheers,

--Dave

On Oct 27, 2005, at 5:42 PM, Stefan Werner wrote:

Hi,

I'm having a weird situation where on roughly one out of fifty Tiger systems, our application hangs in NavDialogRun() and never returns. The Navigation dialog shows only the window, but no content. The window can be moved, but other than that, there's no response and just the spinning beachball. The application is a CFM app build with CodeWarrior 8 (before you say it, yes, we are already taking it to Xcode, but this problem can't wait that long).

The code I'm running is the following:

NavDialogRef navDialog;
NavDialogCreationOptions navOptions;
NavGetDefaultDialogCreationOptions(&navOptions);
OSErr dlgErr = NavCreateAskSaveChangesDialog (&navOptions, NULL, NULL, NULL, &navDialog);
if (dlgErr == noErr) {
NavDialogRun(navDialog);
switch (NavDialogGetUserAction(navDialog)) {
case kNavUserActionCancel:
response = answerCANCEL;
break;
case kNavUserActionSaveChanges:
response = answerYES;
break;
case kNavUserActionDontSaveChanges:
response = answerNO;
break;
default:
response = answerYES;
}
NavDialogDispose(navDialog);
}


As said before, this happens on maybe one out of 50 systems and does not seem to be related to hardware configuration whatsoever - the only thing these systems have in common is 10.4.x.

Stefan
_______________________________________________
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: 
 >NavDialogRun hangs (From: Stefan Werner <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.