Sudden crash in [NSApplication sendEvent:]
j o a r
joar at joar.com
Thu Sep 6 04:33:43 PDT 2007
On 6 sep 2007, at 13.15, Виктор Борщак wrote:
> I hope that this question is not really stupid but I honestly can't
> find a solution for a looong time.
> The application I've been writing crashes on [NSApplication
> sendEvent:] (see the crash log below). It happens quite often but
> with no connection to user actions as it seems. It may crash after
> 5 or 10 minutes of work.. or few hours. Once it crashed during
> startup...
To me it looks like a message sent to a deallocated object. The
normal thing to do to track down such a problem would be to leverage
NSZombieEnabled.
<http://www.google.com/search?q=site:developer.apple.com
+NSZombieEnabled>
Crashing during launching of your application doesn't sound typical
to a standard zombie though. Do you have a clean (no haxies or input
managers) and known good system? Have this problem been reported on
any other machines besides yours? Could it be a random memory smasher
(typically from you writing some "unsafe" C-code)? Random memory
smashers are best caught using GuardMalloc:
<http://www.google.com/search?q=site:developer.apple.com+GuardMalloc>
j o a r
More information about the MacOSX-dev
mailing list