R

Hi

I'm writing my first Device app...

I get the following error from seemingly innocuouscode:

Error 1 Deployment and/or registration failed with error: 0x8973190e. Error writing file '%CSIDL_PROGRAM_FILES%\DeviceApplication1\DeviceApplication1.exe'. Error 0x80070020: The process cannot access the file because it is being used by another process.
Device Connectivity Component

Any suggestions as to what might be wrong?

Thanks,

Bakis.

[533 byte] By [Bakis] at [2007-12-18]
# 1

That means your application is already running, so file is in use and can not be overwritten. To fix that please terminate the application via "Memory" applet or restart your device. Remember applications on Windows Mobile are minimized, not closed.

You might consider adding “Exit” button or menu to your application for your convenience.

IlyaTumanov at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2

Please excuse the ignorance...

How can I see that it's it running?

Also how would I implement your suggestions:

"terminate the application via "Memory" applet or restart your device."

Thanks.

Bakis at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 3

Running applications are listed in the "Memory" applet which is located in "Settings" item on a start menu. It also allows you to terminate applications as need. Or you could install one of available task managers for Pocket PC.

To reset your device you could hit a "Reset" button. Usually it's a small hole with a button inside you could push with a tip of a stylus. Sometimes it's hard to find, in that case please refer to the device manual.

IlyaTumanov at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 4
Thanks!
Bakis at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 5
I reset the PDA but I still continue to get the same error. I also looked to see if it was in memory or somewhere on the PDA and it is not. I am trying to deploy to the emulator but I keep getting that error. Any suggestions?
madriceg at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices General...