Click here to Skip to main content
15,899,935 members

Comments by codiemorgan (Top 1 by date)

codiemorgan 5-Jul-12 16:05pm View    
I expect that obj.Data is an array when you initialize it with file.InputStream.Read() ?

Maybe try creating an empty array of the type it is expecting? (1dimensional array) - maybe it accepts it. If it is expecting a 1Dimentional Array of Integer then try the following:

Dim Empty(0) as Integer; '<--- see (0) array size

obj.data = Empty

Or maybe try:
Array.Resize(obj.data,0) ' this will empty the array and set its size to 0. An empty array.