New topic: App crashes - how to debug
<http://forums.realsoftware.com/viewtopic.php?t=44778> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message torrid Post subject: App crashes - how to debugPosted: Thu Jul 19, 2012 4:15 pm Joined: Sat Jun 04, 2011 8:29 am Posts: 319 Hi, I have a number of beta testers testing my app... one said the file saving data feature was not saving so I used a tool to look at his mac over internet... and the app was crashing. Is there anything you can learn from the crash dumps that the app then tries to send to Apple? Or like on windows is that not useful in figuring out the crash??? I added Bob Keeney's stack cleaner to my app awhile back but that did not pop up in this case. Suggestions on ....whether the crash dump is useful or not? - how to debug at this point? it's not happening on our own macs and several are clean with no RB installed on them. Mac OS X 10.7.4 was on beta tester's system so it's not some "old OS" type error. -T _________________ Currently using: Windows XP Pro SP3 Real Studio 2011 Release 4.3 Enterprise and Mac OS 10.7.3 Real Studio 2011 Release 4.3 Enterprise (finally also compiled on Mac) Top jlawrence Post subject: Re: App crashes - how to debugPosted: Thu Jul 19, 2012 4:25 pm Joined: Thu Dec 16, 2010 1:22 pm Posts: 159 If you know "where" the error is happening and what process it took to get there, you might begin to solve the issue. I use a stack dump in the App.UnhandledException Event Handler dim s as String dim errorstack as String dim c as new Clipboard if not hadanerror then //boolean property of app //we don't want to throw multiple errors after the first for each e as String in error.Stack errorstack=errorstack+e+EndOfLine next for w as Integer=0 to WindowCount-1 Window(w).Visible=False next s=Introspection.GetType(error).FullName errorstack=s+EndOfLine+"Stack:"+EndOfLine+errorstack dim msg as new MessageDialog dim btn as MessageDialogButton Msg.Message="Oops! This is embarrassing. I have encountered an unexpected error and have to quit."+EndOfLine Msg.Message=Msg.Message+"The details below have been copied to your Clipboard if you would like to notify the developer."+EndOfLine Msg.Title="Error" Msg.Icon=MessageDialog.GraphicStop Msg.Explanation=errorstack Msg.ActionButton.Caption="Bummer!" c.Text=errorstack btn=Msg.ShowModal hadanerror=true quit end Return true Good luck Top Bob Keeney Post subject: Re: App crashes - how to debugPosted: Thu Jul 19, 2012 5:45 pm Joined: Fri Sep 30, 2005 11:48 am Posts: 3125 Location: Lenexa, KS The Crash Dumb is useful because it will have some stack information in it. It's a starting point.... _________________ Bob K. 36+ hours of Real Studio Video Training at http://www.bkeeney.com/ Real Studio Consulting http://www.bkeeney.com/consulting/real-studio-consulting BKeeney Briefs Blog For Real Studio Developers http://www.bkeeneybriefs.com/ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
