Re: Newbie advice on correct way to debug please

r_z_aret_at_pen_fact.com
Date: 02/04/05


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



Relevant Pages

  • Re: Newbie advice on correct way to debug please
    ... > I'm running EVC4 without MFC using C++ targetting an i-Mate with PPC SE ... I compile an app to run under the correct emulator which ... >> answers are likely to be very different for eVC with MFC, ... The "executables" generated by VS.NET are ...
    (microsoft.public.pocketpc.developer)
  • Re: How safe is intellectual property in compiled binaries?
    ... > compiling source code into an executable is pre-defined. ... > a compiler destroys information in the compilation process, ... some names make their way into some executables as ...
    (comp.lang.fortran)
  • Re: EVC++ 4.0, SP4, two SDKs - Tool commands lost on platform switch
    ... Yes, eVC 4. ... The left-most drop-down selects Platform. ... but I haven't had problems with executables. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: PPC 2003 Thread
    ... WaitForSingleObject(hThread, INFINITE); ... > What I mean by same executable is that, actually, I am using eVC++ ... > could run on both PPC 2002 and PPC 2003. ... However, I tested the executables ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Modifing existing header file
    ... >>This header file is shared between multiple C files, ... >>compiled into separate executables. ... >>After compiling the ...
    (comp.lang.c)