- changed status to wontfix
Object reference not set to an instance of an object
Issue #2
wontfix
Originally submitted by MalteB.
I am trying to save a stringified JSON object to disk and run into the following error:
Object reference not set to an instance of an object.
+ Snappy.SnappyStream.Dispose(bool)
+ System.IO.Stream.Close()
+ System.IO.Stream.Dispose()
+ [...].toSnappyJson(string)
this is my code (pretty much copied from the website)
using Snappy;
using Newtonsoft.Json;
...
public void toSnappyJson(string path)
{
using (var file = File.OpenWrite(path))
using (var snap = new SnappyStream(file, System.IO.Compression.CompressionMode.Compress))
using (var writer = new StreamWriter(snap))
{
var res = JsonConvert.SerializeObject(this);
writer.WriteLine(res);
}
}
Comments (1)
-
reporter - Log in to comment
This library is no longer maintained. Feed free to adopt it if you find it useful.