locked-files

SMTP Send is locking up my files - c#

狂风中的少年 提交于 2019-11-26 16:58:17
问题 I have a function thats sending messages ( a lot of them) and their attachments. It basically loops through a directory structure and creates emails from a file structure for example c:\emails\message01 \attachments c:\emails\message02 \attachments The creation of the messages takes place using .net c#, standard stuff. After all messages are created... I have another function that runs directly afterwards that copies the message folder to another location. Problem is - files are locked...

Error: Cannot access file bin/Debug/… because it is being used by another process

[亡魂溺海] 提交于 2019-11-26 15:46:49
When I debug my project, I get following error: "Unable to copy file "obj\Debug\My Dream.exe" to "bin\Debug\My Dream.exe". The process cannot access the file 'bin\Debug\My Dream.exe' because it is being used by another process." Using Process Explorer, I see that MyApplication.exe was out but System process still uses it although I stopped debug before. Whenever I change my code and start debug it is going to happen. If I copy project to USB and debug, it runs OK. Why? How can I fix this error? I use Window 7 Professional. With Xp I have never got this error. Cody Gray Ugh, this is an old

Error: Cannot access file bin/Debug/… because it is being used by another process

非 Y 不嫁゛ 提交于 2019-11-26 04:36:38
问题 When I debug my project, I get following error: \"Unable to copy file \"obj\\Debug\\My Dream.exe\" to \"bin\\Debug\\My Dream.exe\". The process cannot access the file \'bin\\Debug\\My Dream.exe\' because it is being used by another process.\" Using Process Explorer, I see that MyApplication.exe was out but System process still uses it although I stopped debug before. Whenever I change my code and start debug it is going to happen. If I copy project to USB and debug, it runs OK. Why? How can I