tags:

views:

188

answers:

1

I am running an AsyncReader to open a shared MPG file that is being downloaded by another application (progressive download). The shared MPG file is created with FILE-SHARE-READ | FILE-SHARE-DELETE | FILE-SHARE-WRITE shared permissions. I have even tried every combination of those flags.

Here's the problem: within C# the AsyncReader.Load method returns a "file in use" error. Within C++ it does not. C++ opens the file just fine.

Any idea why this is?

A: 

Do you have control over (the source code for) the progressive download application? If you do, this link might offer some insight:

The Process Async Reader Bug
http://www.codeproject.com/KB/bugs/ProcessAsyncReaderBug.aspx

Robert Harvey
Yes, I have access to the source code, but I'm afraid this article didn't help. Thanks for the answer.
CLaRGe