System.Byte[*]

Dear All,

I have an object data type that I pass to a function. I can view the values returned in debug mode. But I can’t make use of this data in any way. I tried to read the data into another data structure and I have no success to date. These are the declarations and error message;

Declaration:

public object buffer;

byte[] myByte;

myByte=(byte[])buffer;

Error message:

Unable to cast object of type 'System.Byte[ * ]' to type 'System.Byte[]'.

Any help would be great;



Answer this question

System.Byte[*]

  • Chris H.

    hi,

    i saw this thread in other forum so keep just one no need to repeat it

    best regards



  • Coolerbob

    hi,

    is there any example of the data that your buffer carry

    best regards



  • Arno3456

    Yes. It carries positive integers. In the debug mode (VS 2005)

    myByte=(byte[])buffer

    -buffer|{Dimensions:[1..9000]}

    [1] 40

    [2] 0

    [3] 0

    [4] 0

    [5] 128

    ....

    - Regards


  • System.Byte[*]