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: Intermittent crash that's driving me nuts... any ideas?




On Dec 18, 2006, at 19:04, a.d. jensen wrote:

I've a program that is basically a mini browser, with only one window, with a Webview in it. A week or so ago, we added a second window to the program, and now, if you have the two windows open, about 15% of the time, it will crash when you quit. Unfortunately, it's dying deep in the [NSApplication terminate:] method, so I'm really not sure what I might be goofing up. It's always on a "undoManager" line, but I don't do anything with undoManager, and even tried setting it to nil with the [NSDocument setUndoManager:] without making a difference.

I thought I'd post the stack crawl in case anyone else recognizes something obvious I'm missing. The only piece of my code in there is "[myDocument dropOut:] which simply calls [NSApplication terminate:]

We had a similar problem, which I think was due to a bug in WebView. I worked around it by sending


[webView setEditingDelegate:nil];

in the window controller's dealloc method. Based on your backtrace, you might want to try something similar.

hth,
Adam

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Intermittent crash that's driving me nuts... any ideas? (From: "a.d. jensen" <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.