New topic: Windows version of application crashing on startup
<http://forums.realsoftware.com/viewtopic.php?t=44033> Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message wkoperwhats Post subject: Windows version of application crashing on startupPosted: Wed May 16, 2012 12:21 pm Joined: Mon Apr 20, 2009 1:29 pm Posts: 16 I have a cross platform application that I've written and compiled using the Mac OS X version of RS 2011. It runs fine on the Mac OS but crashes immediately on Windows. This by itself isn't really cause for concern, I understand that there are plenty of functions which only work on a single platform, but here's the catch: When I load the *exact same* source file in a trial version of RS 2011 for Windows it will compile and run perfectly! Of course it will only run for 5 minutes, but there is *no* indication that anything is working incorrectly. Does anyone have ideas of what to look for? -bill [UPDATE]: Even weirder, the version compiled on the Mac runs just fine under Windows 7, but crashes on startup in XP. Top Bob Keeney Post subject: Re: Windows version of application crashing on startupPosted: Wed May 16, 2012 1:21 pm Joined: Fri Sep 30, 2005 11:48 am Posts: 3009 Location: Lenexa, KS There's 'crash' meaning the app went poof and the OS says that bad things happen. OR, there's unhandled exceptions that RB catches and is reporting. Which is it? I would bet the latter. On unhandled exceptions, you can get the Stack trace in the Application.UnhandledException event as well as what type of exception it was. You can also keep the app from quitting by returning true. Use this event to gather more information. _________________ Bob K. 30+ hours of Real Studio Video Training (including over 6 hours of Web Edition) 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 wkoperwhats Post subject: Re: Windows version of application crashing on startupPosted: Wed May 16, 2012 2:00 pm Joined: Mon Apr 20, 2009 1:29 pm Posts: 16 No, unfortunately it's a Windows error, not RS. "AppName has encountered a problem and needs to close. We are sorry for the inconvenience [sic]". Clicking to show the "report" which will be sent to MicroSoft indicates that the error is occurring in ntdll.dll. This is a completely clean install of XP SP3. If I run it in my development install of XP I get the option of opening in the VisualStudio Just-In-Time debugger. It runs *perfectly* when compiled with the RS 2011 trial Windows version and it also runs perfectly in Win 7. Top Bob Keeney Post subject: Re: Windows version of application crashing on startupPosted: Wed May 16, 2012 2:42 pm Joined: Fri Sep 30, 2005 11:48 am Posts: 3009 Location: Lenexa, KS hhhmm...well, that's very odd as I can't say I've seen that happen before. Stupid question but is XP updated to current spec's? _________________ Bob K. 30+ hours of Real Studio Video Training (including over 6 hours of Web Edition) 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 wkoperwhats Post subject: Re: Windows version of application crashing on startupPosted: Wed May 16, 2012 3:49 pm Joined: Mon Apr 20, 2009 1:29 pm Posts: 16 Everything is completely up to date. It's not that I expect the Windows binary to be identical when compiled on Mac OS X vs. compiled on Windows, but the fact that it *crashes* is a bit annoying. If I find the culprit I'll post it here. -bill Top Bob Keeney Post subject: Re: Windows version of application crashing on startupPosted: Wed May 16, 2012 4:35 pm Joined: Fri Sep 30, 2005 11:48 am Posts: 3009 Location: Lenexa, KS You might need to put some system.debuglog statements in to narrow it down. Use Microsofts DebugView to see the debug statements then. Annoying as all get out I'm sure. We had a client where the Mac executable being built in Windows didn't work on the Mac but if it was built on the Mac it worked fine. So I guess there is some precedent for a bug like this. Good luck. _________________ Bob K. 30+ hours of Real Studio Video Training (including over 6 hours of Web Edition) 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 [ 6 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]
