For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > April 2006 > Cannot start debugging in VS2005 SP2003SE emulator









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Cannot start debugging in VS2005 SP2003SE emulator
ArtemK

2006-02-27, 7:57 am

Hello!

I have one program for Smartpohone that was ported from EVC 4.0 to VS2005. I
want to debug it on the SP2003SE emulator but Visual Studio reports "Unable
to start program .... An error occured that usially indicates a corrupt
installation (code 0x8007007e). If the problem persists, repair your VS
installaon ....". Program is set to be signed with unprivileged certificate,
option "Provision Device" is enabled.
How can I fix this?


Matt

2006-02-27, 7:11 pm

I am just taking a shot in the dark about this, but if you try to run
that debug application without using the debugger, like just clicking
on it on the SP, do you get an error saying the application cannot be
run and either it is missing a component or is not signed with a
trusted certificate? If you get that error or something similar, it
sounds to me that a DLL is missing from the Smartphone that you will
need to add. In my Pocket PC application I saw something similar and
when I added these to the deploy section for Additional Files it fixed
everything:

atl80. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
msvcr80d. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
MFC80UD. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
msvcr80. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;

Make sure that you change the <DeployDirectory> to your actual deploy
directory.

Matt

Barry Bond [MS]

2006-02-27, 7:11 pm

The HRESULT is Win32 ERROR_MOD_NOT_FOUND... it does sound like a missing
DLL.
Barry

"Matt" <zimmerma009@hotmail.com> wrote in message
news:1141054452.658486.258600@z34g2000cwc.googlegroups.com...
>I am just taking a shot in the dark about this, but if you try to run
> that debug application without using the debugger, like just clicking
> on it on the SP, do you get an error saying the application cannot be
> run and either it is missing a component or is not signed with a
> trusted certificate? If you get that error or something similar, it
> sounds to me that a DLL is missing from the Smartphone that you will
> need to add. In my Pocket PC application I saw something similar and
> when I added these to the deploy section for Additional Files it fixed
> everything:
>
> atl80. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
> msvcr80d. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
> MFC80UD. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
> msvcr80. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\<DeployDirectory>|0;
>
> Make sure that you change the <DeployDirectory> to your actual deploy
> directory.
>
> Matt
>



Tom Moon

2006-03-21, 10:09 pm

I am unable to run my simple program on the SP2003 QVGA emulator.
My error message is always a pop-up box that says
Unable to start program "%CSIDL_PROGRAM_FILES%\BugDemo\BugDemo.exe"


I added the above suggestion to "Additional Files".

atl80. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\BugDemo|0;
msvcr80d. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\BugDemo|0;
MFC80UD. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\BugDemo|0;
msvcr80. dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_
PROGRAM_FILES%\BugDemo|0;

(where BugDemo is the name of my project).


I saw the following new messages in the output window when starting
debugging:

c:\Program Files\Microsoft Visual Studio 8\VC\ce\dll\ARMV4\atl80.dll
c:\Program Files\Microsoft Visual Studio 8\VC\ce\dll\ARMV4\msvcr80d.dll
c:\Program Files\Microsoft Visual Studio 8\VC\ce\dll\ARMV4\MFC80UD.dll
c:\Program Files\Microsoft Visual Studio 8\VC\ce\dll\ARMV4\msvcr80.dll


It appeared to make no difference.

-J Tom Moon

Matt

2006-03-23, 7:08 pm

The reason why you cannot debug is because it is looking at the wrong
folder for your application. If you go to the debug tab in
preferences, can you just replace the string that says:

"%CSIDL_PROGRAM_FILES%\BugDemo\BugDemo.exe"

with the actual location of your file.

That should help you out.

Matt

Tom Moon

2006-04-07, 7:05 pm

Still didn't work.
Under Project Properties -> Configuration Properties -> Debugging ->
Remote Executable

I have put the literal path in the 'Remote Executable' field:
C:\Documents and Settings\JTM\BugDemo\Windows Mobile 5.0 Smartphone SDK
(ARMV4I)\Debug\BugDemo.exe

After starting the emulator in a debug configuration and then starting
debug (F5) I get this popup message:

<popup>
Unable to start the program 'C:\Documents and
Settings\JTM\BugDemo\Windows Mobile 5.0 Smartphone SDK
(ARMV4I)\Debug\BugDemo.exe'
The system cannot find the specified file.
<\popup>

I double checked the path and the exe. It exists on my workstation.

Maybe the 'Remote Executable' field refers to a path on the emulator?
I input '\Storage Card\BugDemo.exe' (and shared the folder C:\Temp and
copied BugDemo.exe to C:\Temp\BugDemo.exe).
This time I got the error:

<popup>
Unable to start program '\Storage Card\BugDemo.exe'
An error occurred that usually indicates a corrupt installation (code
0x8007007e).
<\popup>

The Error Lookup tool reports 0x8007007e is "The specified module could
not be found."
I'm sure the folder sharing is working because I am able to run a
release version of this same program and it will open files in the
shared '\Storage Card' directory.

-J Tom Moon

Matt

2006-04-09, 4:04 am

I am not 100% sure because I have not looked at this kind of debugging
in a while. But maybe you need the MFC dlls. I made a couple of posts
earlier about what you can put into the deploy section and maybe that
will fix your issue. Can you run this executible without debugging or
do you get some other error too?

Matt

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com