I have a small problem.
I saved an ink.isf file in a VB.NET app. I can open it fine with the C+ example in the SDK sample that was supplied
I can not open it in the VB.NET app I've done.
In my C+ code... I have this

Ink loadedInk = new Ink();
byte[] isfBytes = new byte[s.Length];

// read in the ISF
s.Read(isfBytes, 0, (int) s.Length);

// load the ink into a new ink object
// once an ink object has been "dirtied" it can never load ink again
loadedInk.Load(isfBytes);



The isfbytes is 218 and s.length is also 218 so all is in sync..

BUT .. in the VB.NET I have this...

Dim LoadedInk As Ink = New Ink
Dim isfBytes() As Byte = New Byte() {0}
ReDim isfBytes(s.Length)

' read in the ISF
s.Read(isfBytes, 0, CInt(s.Length))

myInkCollector.Enabled = False
myInkCollector.Ink = LoadedInk

BUT .. isfBytes is now 219 and s.Length is still 218 so the
application catches an exception and dies... What am I missing here ?? Why is my byte count off by 1?