Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QTAgent32 Holding File Open

Tags:

c#

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.

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

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

like image 923
griegs Avatar asked May 12 '11 00:05

griegs


1 Answers

QTAgent32 is Visual Studio's test runner.

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

like image 71
SLaks Avatar answered Nov 02 '22 12:11

SLaks