Could not connect to device

When iam debbuging my application somtimes frezes and i need to reboot the smpart phone.
Is there anyway to avid it ? It seems like the program is beeing used, how to avoid this?

:)

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

[473 byte] By [Latso] at [2007-12-25]
# 1

You can kill the process from remote process explorer to free up the file. Next step would be to fix your application so it won't freeze.

IlyaTumanov at 2007-8-31 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...