Re: running a service/driver/application upon startup



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
>
>


.



Relevant Pages

  • Re: Symbols not loaded for DLLs
    ... I tried WinDbg 6.5.3.7 and was able to load symbols and debug the DLL ... The only thing I had to do was set the symbol path to point to my pdb ... Debug Data Dirs: Type Size VA Pointer ...
    (microsoft.public.vc.debugger)
  • Re: Cannot Debug the DLL??
    ... Make sure the PDB is copied into the main project directory, ... and that it is built in debug mode. ... >when I add references that dll in project and break point in code when I ... >I think .pdb file help to debuging? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to connect to children process
    ... Main problem is amount of manual operations required per debug cycle. ... connection to DLL with debugger takes sensible amount of time and manual ... Is the main problem that the debugger keeps symbols file loaded ... AFAIK that's how VS2003 debugger works, but WinDbg should usually ...
    (microsoft.public.vsnet.debugging)
  • Re: running a service/driver/application upon startup
    ... Would it be possible for you to drop a debug services.exe and debug nk.exe ... > I ran dumpbin/exports on the finger dll and saw the required function ... >> theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • Re: technical/OS problem (windows xp?)
    ... Build a debug version of the ISAPI DLL. ... Create a virtual root with execute permissions in the IIS Management ... Add your ISAPI extension or filter DLL to the list. ...
    (alt.marketing.online.ebay)

Loading