Delete a file cannot be deleted

Hello every one, I'm happy to here and ask you a question, in other words, let's solve a pazzle.
I downloaded some TV-Shows from the Internet, and I want to convert them to AVI files because that could save a lot of space of hard-disk. But during using the third-party software WinMPG Video Convert, an error occured and showed a message to me telling that the file I selected had no video or audio stream, but it is impossible, because the file can be played normally. Then, I found this software built a zero-size file on my hard-disk, and while I tried to delete this file, Windows had no response soon. Why? I cannot explain that, but it's interesting and unbelievable that when I tried to write some C# codes to delete this file automatily, an exception occured when I debugged it, the message showed me that the file I tried to delete was locked by another process. What? Which one? I don't know. I closed my application and tried to delete again. I'm really hope that it can success, but it does not, the difference is that Windows responsed and showed me the same message. Then, I opened the taskmgr and found a process named conime.exe(calm down man, it does not a virus, on the contrary, it is a normal process that called by my application, because my application is an Console Application, it of course will call the Console IME), I killed it and tried to delete the file once again. SUCCESS! What did my application do? Could you explain the pazzle for me? Thanks lot.
Best Regards,
Wei CHEN
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值