2
Vote

VS Crashes

description

I'm running VS 2015 Community RC1 under Windows 8.1 Pro, with a .Net 4.5 project..

When I try the following...
        public void AppendFilePartToDisk(string filePath, byte[] dataChunk, bool isLastChunk)
        {
            var directory = filePath.Substring(0, filePath.LastIndexOf('\\'));
            
            if (!QuickIODirectory.Exists(directory)) QuickIODirectory.Create(directory, true);

            using (FileStream fs = QuickIOFile.Open(filePath, FileMode.OpenOrCreate, FileAccess.ReadWrite))
            {
                fs.Position = fs.Length;
                fs.Write(dataChunk, 0, dataChunk.Length);
                fs.Flush();
                fs.Close();
            }
        }
With a long file path, Visual Studio Crashes... I really am not used to doing low-level debugging against VS, but the crash also seems to happen if I use Microsoft.Experimental.IO or QuickIO - I'm not sure if it's a new Windows 8.1 security measure, or a change in the API itself.

comments

BenjaminAbt wrote Jun 6, 2015 at 10:38 AM

https://github.com/SchwabenCode/QuickIO/issues/1

** Closed by BenjaminAbt 06/06/2015 3:38AM

BenjaminAbt wrote Jun 6, 2015 at 10:39 AM

Thank you. Thats crazy.
I've moved the issue to GitHub and working on it!

BenjaminAbt wrote Jun 6, 2015 at 12:56 PM

Could u please give me some information?
Last Windows Updates? KB Number?
.NET 4.5? 4.5.1? 4.5.2? 4.6?
Full pathname?
Exists?
Attributes?

Thanks!

icnocop wrote Mar 14, 2016 at 7:59 PM

This should probably be closed because the same issue in GitHub is closed with the following comment:
BenjaminAbt commented on Jan 23
New VS does not crash anymore.