Yeah, get the same error...

I noticed something earlier though, I thought I'd experiment with WriteFile so I wrote a constant number at the BytesToWrite. When the number was <3000 bytes, the file was filled with data, but when it was over, it pushed an error. This isn't excactly logical, since the pointer pointed to a place in memory containing 26322 bytes.