I am creating a Property Sheet test application for my device. When I
copy the debug a2test.exe to the device and run it all is well! But,
when I use PB and download entire image and try to debug, I get a
First-chance exception in NK.EXE (0xC000001C: Invalid System Service)
when calling PropertySheet() The pertinent lines from the Debug are

PID:bd99fb2 TID:bd9eeae 0x8bd815c4: ObjectCall: Failed(1): 15
PID:bd99fb2 TID:bd9eeae 0x8bd815c4: RaiseException: Thread=8bd815c4
Proc=8a14de30 'a2test.exe'
PID:bd99fb2 TID:bd9eeae 0x8bd815c4: AKY=00000081
PC=8822f668(NK.EXE+0x0002f668) RA=88229280(NK.EXE+0x00029280)
BVA=00000000 FSR=00000001

And I am in
RETADDR ObjectCall (POBJCALLSTRUCT pobs)

When I try to pull up the call stack for my application it shows

NK!ObjectCall(_OBJCALLSTRUCT * 0x1002ed88 {method=0xffffeae5
prevSP=0x00000000 mode=0x0000001f ...}) line 1231
NK!PrefetchAbort + 324 bytes
NK!PrefetchAbort + 324 bytes
NK!PrefetchAbort + 324 bytes
.
.
.
I set break points in all of my DialogProcs and it is croaking before
reaching any of them. I don't even know where to go from here?

Any help / suggestions appreciated.
gerrit

Re: HELP: Debug causes exception but release is fine by gerrit

gerrit
Tue Feb 07 17:50:32 CST 2006

This is a timing issue. I am launching this from the registry init
key, when it raises an Exception. How can I tell what service/process
is not ready. I am waiting for shell, device, and GWES. There is
obviously something more I should wait for. Anybody have any
suggestions on what that might be?


Re: HELP: Debug causes exception but release is fine by Anthony

Anthony
Wed Feb 08 02:15:43 CST 2006

Did you try to call the IsAPIReady function at the beginning of your
application? You should loop on this call until it returns TRUE for every
API.

HTH

--
--
--
----------------------------------------------------------------
Anthony Pellerin
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"gerrit" <google@gerritk.com> a écrit dans le message de news:
1139356232.142011.94440@f14g2000cwb.googlegroups.com...
> This is a timing issue. I am launching this from the registry init
> key, when it raises an Exception. How can I tell what service/process
> is not ready. I am waiting for shell, device, and GWES. There is
> obviously something more I should wait for. Anybody have any
> suggestions on what that might be?
>



Re: HELP: Debug causes exception but release is fine by gerrit

gerrit
Wed Feb 08 11:50:33 CST 2006

I am going to create a new thread with a more descriptive title -
IsAPIReady(SH_SHELL) and shell components