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: Windows app crashing--what to do?



tell the compiler to generate a .map file (text, readable), then you can use drwatson.exe or similar to see where it crashed (the problem maybe elsewhere though)

better add logging calls in your code to write to a file (or to use WriteDebugStr or similar to send debug strings to a debug messages display/console like the free one from www.sysinternals.com). Then you see the execution path it took

also use assertions to check for expected conditions at proc entry and exit and if they fail the assertion will fire and let you know. Then at deployment you tell compiler to ignore assertions

-----
George Birbilis (email@hidden)
Microsoft Most Valuable Professional
MVP J# for 2004 & 2005
http://www.kagi.com/birbilis
QuickTime, Delphi, ActiveX, .NET, IPC
--------------
----- Original Message ----- From: "Chilton Webb" <email@hidden>
To: <email@hidden>
Sent: Tuesday, August 16, 2005 3:00 PM
Subject: Windows app crashing--what to do?



Hi,

I'm writing a relatively simple cross-platform app for Mac and Windows. I'm using CW 8.3. On the Windows side, it crashes occasionally. The problem is, if it crashes in CW, I get no indication that it has happened, other than the fact that the log says, "Access Violation at address 0xCCCCCCCC".

On the Mac, it shows where the bad operation occurred. In the PC version, I get nothing like that.

Once it happens, I can't pause the app to see where it happened, obviously. And stepping through the code seems to be getting around the problem (I think it's a timing issue).

On the Mac, the crash log provides a lot of useful info, specifically it tells me where things went south, in my app. CodeWarrior's debugger is equally helpful.

So my question is, how do I figure out where my app crashed, in WindowsXP? Could I have CW set up wrong?

Thanks,
-Chilton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >Windows app crashing--what to do? (From: Chilton Webb <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.