QTAgent32控股文件打开 [英] QTAgent32 Holding File Open

查看:107
本文介绍了QTAgent32控股文件打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在书面方式一个应用程序,将提取第一个文本,然后从各种文件的图像。

We're writting an app that will extract first text and then images from various files.

在我们的测试脚本中,我们发现,一旦我们提取文本并尝试打开该文件正在举行由另一个进程打开的图像提取该文件。

In our test scripts we are finding that once we have extracted the text and try to open the file for image extraction that the file is being held open by another process.

我们已经关闭了该文件的所有引用,处理它们,并将它们设置为空。

We have closed all references to the file, disposed them and set them to null.

使用Process Explorer中,我们发现,这是QTAgent32被抱着它打开。

Using Process Explorer we found that it was QTAgent32 that was holding it open.

我们如何能告诉该库以释放手柄,或者这是一个已知的bug,它不会影响到生产代码?

How can we tell this library to release the handle or is this a known bug and it won't affect the production code?

推荐答案

QTAgent32是Visual Studio的测试运行。

QTAgent32 is Visual Studio's test runner.

这意味着你的测试有一个的FileStream ,你忘了关。

This means that your test has a FileStream that you forgot to close.

这篇关于QTAgent32控股文件打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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