Re: Can't attach to process on CE device
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Fri, 21 Oct 2005 08:56:03 -0700
Although you may get the toolhelp DLL when you enable kernel debugger, you
don't have to enable kernel debugging to get it. It's in the catalog in the
Core OS section under Debugging Tools (or something about like that).
Paul T.
"Dan McCarty" <dmccarty@xxxxxxxxx> wrote in message
news:1129907535.923774.162900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Are you using the standard SDK or a custom SDK? Toolhelp.dll is part
> of the kernel debugger, so if your SDK wasn't built with the "Enable
> Kernel Debugger" option checked, you'll probably have problems trying
> to use it. (Even if you manually included the file.)
>
> On my emulator toolhelp.dll is present in the \windows directory, and
> it isn't read-only. When I try to attach to a running process with eVC
> I get a message about not being able to find commdlg.dll, but I can
> cancel past it.
>
> BTW, attach to running process is a better way to debug in eVC. I
> wrote a post about it a little while back.
> ("http://groups.google.com/group/microsoft.public.windowsce.embedded.vc/msg/f557199d4b5b7eff?dmode=source)
>
> Hope part of my rambling helped,
> Dan.
>
> minorguy wrote:
>> I'm using eMbedded VC++ 4.0 with SP4. I'm trying to attach to a
>> process on the target device by selecting Build-->Start Debug-->Attach
>> to WCE Process. When I do this, I get a message box with the error
>> "Toolhelp.dll cannot be copied to the target device."
>>
>> I am using Platform Builder 5.0 to build an image for my CEPC device,
>> the target device. I've included toolhelp.dll in the image. I've also
>> included the platform manager files needed for debugging over ethernet:
>> cemgrc.exe, tcpipc.dll and cetlkitl.dll. I use Platform Builder to
>> download the image to the CEPC. (I've worked around the problem of
>> cemgrc.exe exiting by writing a little app to ensure cemgrc.exe is
>> always running)
>>
>> Then I go to eMbedded VC++ which is on a separate system. The program
>> I'm developing is a device driver. I can connect and download my DLL
>> to the target CE system OK over ethernet. I can use all the remote
>> tools OK, such as the process viewer and registry editor. But when I
>> select Attach to WCE Process, it tells me that "Toolhelp.dll cannot
>> be copied to the target device."
>>
>> I've ensured that toolhelp.dll does exist on the target device. So I
>> don't know why eMbedded VC++ thinks it needs to download it. Although
>> the toolhelp.dll file is read-only on the target device---and it
>> won't seem to allow me to change that---I don't think that's the
>> problem. I got the same error even before I had built toolhelp.dll into
>> the CE image.
>>
>> Any ideas on how I can fix this and attach to remote processes? I need
>> to attach to device.exe so I can debug my driver DLL as it gets loaded.
>>
>> I did a search and only found one other person who had this same
>> problem and there were no replies. (
>> http://groups.google.com/group/microsoft.public.windowsce.embedded.vc/browse_frm/thread/13dcf7f410bdf2a4/005c6273f4b9d7b4?lnk=st&q=toolhelp.dll+cannot+be+copied+to+the+target+device&rnum=1#005c6273f4b9d7b4
>> )
>>
>> Thanks.
>
.
- Follow-Ups:
- Re: Can't attach to process on CE device
- From: Dan McCarty
- Re: Can't attach to process on CE device
- References:
- Can't attach to process on CE device
- From: minorguy
- Re: Can't attach to process on CE device
- From: Dan McCarty
- Can't attach to process on CE device
- Prev by Date: Re: Can't attach to process on CE device
- Next by Date: Re: Communicating through a serial port
- Previous by thread: Re: Can't attach to process on CE device
- Next by thread: Re: Can't attach to process on CE device
- Index(es):
Relevant Pages
|