文件正在被另一个进程错误使用 [英] File is being used by another process error

查看:106
本文介绍了文件正在被另一个进程错误使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请给我一些解决以下错误的建议:该进程无法访问文件thumb001,因为它正在被另一个进程使用".

我有多个视频文件.
iam从视频中提取帧并将其另存为.jpg图像到文件夹中,然后将其水平显示在列表框中.

框架将以相同的名称(thumb001,thumb002,....)保存在文件夹中
用于所有视频.

现在,当我提取另一个视频的帧时,我希望删除先前视频的所有帧并将新的帧保存在同一文件夹中.
如果iam没有在列表框中显示框架,则在这里工作正常.

如果我在列表框中显示帧,然后提取下一个视频的帧,则出现上述错误.(即使我清除了列表框).

任何帮助将不胜感激...

谢谢..!

Hi all,

Plz give me suggestions to solve the following error:"The process cannot access the file thumb001 because it is being used by another process".

I have multiple video files.
iam extracting frames from a video and saving as .jpg images in a folder and then displaying the frames in a listbox horizontally.

The frames will save with the same names(thumb001, thumb002,....)in the folder
for all videos.

Now when i extract frames of another video i want all the frames of previous video should be deleted and save the new frames in the same folder.
works fine up to here if iam not displaying frames in listbox.

if i display the frames in listbox and then extract frames of next video iam getting the above error.(even though i clear listbox).

any help will be much appreciated...

Thanks..!

推荐答案

保存具有不同名称的框架,或释放您正在使用的文件句柄.这些是您唯一的选择.
Save the frames with different names, or release the files handles you''re using. Those are your only options.


这篇关于文件正在被另一个进程错误使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆