ivalente / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

Writing a buffer which is Large #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. mount drive
2. Open file for writing
3. Write a really large chunk of data to a file

What is the expected output? What do you see instead?
Expected: Data should be written
Output: IOException 

What version of the product are you using? On what operating system?
Vista 32bit, dokan-0.5.3, net-0.3.0
Visual Studio 2010 Express

Please provide any additional information below.

C# code:

int biig = 50 * 1024 * 1024; //50 MB
byte[] bytes = new byte[biig];
File.WriteAllBytes("z:\\myfile.txt", bytes); // <-- error

Original issue reported on code.google.com by tokeboy.riis on 30 Jul 2010 at 9:21

GoogleCodeExporter commented 9 years ago
hmmm - It actually looks like a concurrency issue.

At the time of the write-operation, the file is closed!
fixed by setting "ThreadCount = 1"

Unable at this point, to verify whether is my code or the dokan-library which 
is failing... I'll investigate it further!

Original comment by tokeboy.riis on 30 Jul 2010 at 10:50

GoogleCodeExporter commented 9 years ago
I was a bit fast there!

It was a concurrency-issue with my code. It had absolutely nothing to do with 
the size of the chunk being written. My bad!

Issue 169 still holds though!

Original comment by tokeboy.riis on 30 Jul 2010 at 11:40

GoogleCodeExporter commented 9 years ago

Original comment by asa...@gmail.com on 7 Jan 2011 at 4:19