Re: running a service/driver/application upon startup
- From: "John Spaith [MS]" <jspaith@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Oct 2005 14:37:38 -0700
The .pdb and .rel files are only needed for debugging. If you have a fully
debug version of CE, the best bet is to run it, hook it up to Platform
Builder, and turn on full debugzones for services.exe. This may help
pinpoint the issue very quickly. You can also turn on the loader debug
zones (I think this is via the process nk.exe debugzones) to get tons of
detailed information.
I would also try running, from a "build" window on your XP host (in PB 5.0
it's in Build Os->Open Release Directory, not sure if it's the same on CE
4.1). Then run 'link /dump /exports fingerserver.dll'. You should see
something like FIN_Init, FIN_DeInit, and FIN_IOControl - those are the 3
required exports.
Also try setting DLL name equal to the full path of your service DLL.
Another common error is that your fingerServer.def file itself needs to have
"LIBRARY FingerServer" or something like that in it. I've seen people where
they have something like "LIBRARY
NameOfOldDllICopiedAndPastedThisDefFileFrom" and this will compile but the
linker won't handle it.
You can avoid constantly having to reboot the device to test different
theories as to why it's not getting loaded but just doing 'services load
Finger". That's the same code path (almost) as in system startup.
--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation
Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
"vernon hyde" <vhyde@xxxxxxxxxxxxxxx> wrote in message
news:O3TXwhO1FHA.1132@xxxxxxxxxxxxxxxxxxxxxxx
> Hi John,
>
> Thanks for your help. I still can't get it to work, but the problem
> appears
> to be something more basic, because I can't load the dll even when it is
> part of the image.
>
> I'm new to CE, so it might be something really obvious. I noticed that
> the
> other services store map, pdb, and rel files in the release directory.
> Are
> they necessary?
>
> My registry settings are as follows:
>
> ...\Services\FINGER
>
> DLL fingerserver.dll
> Order 9
> Keep 1
> Prefix FIN
> Index 0
>
> Any help you or anyone else out there can provide for a frustrated novice
> would be greatly appreciated.
>
> Thanks again, Verne
>
>
.
- Follow-Ups:
- Re: running a service/driver/application upon startup
- From: vernon hyde
- Re: running a service/driver/application upon startup
- References:
- running a service/driver/application upon startup
- From: vernon hyde
- Re: running a service/driver/application upon startup
- From: John Spaith [MS]
- Re: running a service/driver/application upon startup
- From: vernon hyde
- running a service/driver/application upon startup
- Prev by Date: Re: Command Prompt
- Next by Date: Re: Command Prompt
- Previous by thread: Re: running a service/driver/application upon startup
- Next by thread: Re: running a service/driver/application upon startup
- Index(es):
Relevant Pages
|
Loading