Le 7 juin 2010 à 16:39, Gabriel Zachmann a écrit : > I have an application with LSBackgroundOnly = on, and LSUIElement = off. > > Unfortunately, it crashes occasionally, or, rarely, it just hangs for a > minute (with beach ball) then comes back to life. > > So far, I have been unable to find a case where this happens > deterministically. > > So, could you please enlighten me about ways to narrow down the possible > places in the code where it crashes or hangs? > > For some reason, there seem to be no crash reports (as should be created by > CrashReporter). > > Sprinkling the code with NSLog's doesn't sound very appealing - surely, there > must be a better way? > > All kinds of suggestions, insights, and tips will be highly appreciated. > > Best regards, > Gabriel. >
Make sure you don't get a crash report in neither the computer Library folder (/Library/Log/) nor your home Library. You should get a crash report if your application crashes. Use /Developer/Application/Performance Tools/Spin Control.app to auto sample it when it hangs (use preferences to sample only your app). And also have a look in Console.app to see if you have some message about your application just before it crashes. > PS: > I am not quite sure this is the right list, so if there is a better list to > aski this question, please let me know. > Discussions about tools (compiler, debugger, profiler, …) usually take place on Xcode-users list. -- Jean-Daniel _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com