Emulator debugging - 'unable to start program'

Hi

I'm trying to debug the memwatcher SDK tools sample today item using VS2005.

First I get a message "Program to Debug A non-executable project cannot be
started directly. Please set a command to use to start debugging this
project. Do you wish to continue '

If I click yes I get a message "unable to start program
'%CSIDL_PROGRAM_FILES%\memwatcher\memwatcher.dll'.

This used to work - I don't know what I've done to break it.

I've tried re-installing VS2005 and the SDK with no luck.Other SDK samples
that compile to exes debug fine. If I load the dll and registry items by and the sample works as expected (not debugging) - it also runs on a real device.

Can anyone suggest what to do

Thanks

Mark



Answer this question

Emulator debugging - 'unable to start program'

  • vbnvbn

    You can not start a DLL, you need and exe project which uses it. Please make sure you have this exe project and it's set as startup one.



  • aymen58764

    Is that NETCF project If not, you're in a wrong forum.



  • JYC

    I think a today item should be automatically started when the required registry items are present.

    I have noticed that during the deployment the required registry settings are NOT deployed - only the dll is. If I deploy them by hand and then attach the dll to the desktop shell process I can debug OK.

    It this correct behavior

    Thanks

    Mark


  • Emulator debugging - 'unable to start program'