EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Help with OpenRootData

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 05/08/2008 21:40:37
by Edward Chung (Standard support level)
Joined: 05/08/2008
Posts: 1


I'm trying to write to the root stream using OpenRootData using C#, but every time I try to write to the stream, I get this exception :

Value cannot be null.
Parameter name: destination

at System.Runtime.InteropServices.Marshal.CopyToNative(Object source, Int32 startIndex, IntPtr destination, Int32 length)
at System.Runtime.InteropServices.Marshal.Copy(Byte[] source, Int32 startIndex, IntPtr destination, Int32 length)
at SolFS.SolFSStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at <project>.<function> in <filename>.cs:line 119

The storage seems to be opened correctly, and I run into no errors with SolFSStream ts = storage.OpenRootData(); But as soon as i try to do ts.Write or ts.WriteByte, this exception is thrown. Any ideas? Do i need to create the storage in some way to allow me to access the RootData stream?

Posted: 05/09/2008 01:07:22
by Eugene Mayevski (EldoS Corp.)

MOved to helpdesk for investigating.

Sincerely yours
Eugene Mayevski



Topic viewed 3030 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!