minorguy
2005-10-19 20:02:10 UTC
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.
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.