Re: Where to start looking to fix hang?

2008-06-05 Thread Vijay Malhan
On Thu, Jun 5, 2008 at 9:47 AM, Graham Cox [EMAIL PROTECTED] wrote: In my app I'm getting a hang when my main document window is asked to close. This occurs only if there are unsaved changes, but it hangs before the unsaved changes sheet is presented. If I link against the 10.4u SDK (but

Re: App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?]

2008-06-05 Thread Graham Cox
OK, this is really weird, and frustratingly difficult to get a grip on. By preventing certain things initialising in my app, I can get sheets to work. So I'm quite prepared to agree that it's something I'm doing that is causing some subtle corruption somewhere that just happens to throw a

Re: App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?]

2008-06-05 Thread Andy Lee
If there were a Dr. House for debugging, this is the kind of diagnostic challenge he'd like. Stab in the dark: you mentioned that you're on 10.5.3. Do you have a 10.5.2 machine you can use to see if the hang still occurs? Maybe it's not a Tiger/Leopard thing but a 10.5.2/10.5.3 thing.

Where to start looking to fix hang?

2008-06-04 Thread Graham Cox
In my app I'm getting a hang when my main document window is asked to close. This occurs only if there are unsaved changes, but it hangs before the unsaved changes sheet is presented. If I link against the 10.4u SDK (but still run on 10.5), this does not occur, but if I link against the

Re: Where to start looking to fix hang?

2008-06-04 Thread j o a r
On Jun 4, 2008, at 9:17 PM, Graham Cox wrote: Where should I start to look to debug/fix this? I just can't see where I need to set a breakpoint to begin with. Run your app in the debugger. When it hangs, hit the pause button in the debugger and take a look at the backtrace in the thread

Re: Where to start looking to fix hang?

2008-06-04 Thread Jason Coco
You can use the Spin Control application (/Developer/Applications/ Performance Tools/Spin Control.app) to start... that will let you know what's going on when it starts to hang (this application profiles everything, so just start it before you launch your application, launch your app and

App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?]

2008-06-04 Thread Graham Cox
Thanks for the tip - easy! I wish the bug was that easy here's my stack trace. Looks like the hang is in actually trying to display the save changes sheet itself, rather than any particular logic problem, which is what I was assuming was going on. So, I tried some other sheets I have