Re: Newbie advice on correct way to debug please
r_z_aret_at_pen_fact.com
Date: 02/04/05
- Next message: r_z_aret_at_pen_fact.com: "Re: ActiveSync's approach to installing SW"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Newbee has all kind of problems with ppc"
- In reply to: Andy Storer: "Newbie advice on correct way to debug please"
- Next in thread: Andy Storer: "Re: Newbie advice on correct way to debug please"
- Reply: Andy Storer: "Re: Newbie advice on correct way to debug please"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 04 Feb 2005 11:45:41 -0500
On Fri, 4 Feb 2005 04:49:02 -0800, "Andy Storer"
<AndyStorer@discussions.microsoft.com> wrote:
>I have an app which runs fine on the emulator but when launched on a real
>device immediately quits with no error messages. I tried compiling a debug
>version but no text gets displayed in the debug.txt file on the device. What
>am I doing wrong?
I, at least, would have a much easier time helping you if I knew what
programming language and/or development platform you were using. The
answers are likely to be very different for eVC with MFC, eVC without
MFC, eVB, C#, and VB.NET.
I'll try to be a generic as possible, but I use only eVC without MFC,
and definitely don't know some critical pieces of info about the
others.
1) Are you trying to run the same executable? If you are using eVC,
then the executables you build for the emulator cannot run on real
devices, and vice versa. The "executables" generated by VS.NET are
actually an intermediate code that gets compiled at run time; I don't
use VS.NET, so I don't know whether a single "executable" can run on
emulator and real devices.
2) If you are trying to run an executable that was built for the
actual hardware, then you need to find a break point near the
beginning of your program. The actual beginning is likely not where
you think. If you are using straight Win32 with C/C++, you can try
putting a break point in WinMain. But if you have variables declared
in WinMain, their constructors will be called before WinMain. And if
you have any file-scope variables, their constructors will be called
even sooner.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
- Next message: r_z_aret_at_pen_fact.com: "Re: ActiveSync's approach to installing SW"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Newbee has all kind of problems with ppc"
- In reply to: Andy Storer: "Newbie advice on correct way to debug please"
- Next in thread: Andy Storer: "Re: Newbie advice on correct way to debug please"
- Reply: Andy Storer: "Re: Newbie advice on correct way to debug please"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|