With the string/Chararray fix, I think things will work. String is probably 
screwing up the offset of the rest of the fields. I think if you had an 
int/float/etc. first that one would work, but all after the string go 'bad'.

Perhaps you need to add a [StructLayout(LayoutKind.Sequential)] to your struct. 
I do, but I'm not sure it's necessary.


Scott

> -----Original Message-----
> From: Hdf-forum [mailto:[email protected]] On Behalf Of
> Insane
> Sent: Tuesday, April 09, 2013 11:31 AM
> To: [email protected]
> Subject: Re: [Hdf-forum] c# read different datatypes
>
> Thx,I got the idea with <string> ,hope i`ll cope with this, but how
> should i solve the problem with other data types?
>
>
>
> --
> View this message in context: http://hdf-forum.184993.n3.nabble.com/c-
> read-different-datatypes-tp4026057p4026059.html
> Sent from the hdf-forum mailing list archive at Nabble.com.
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

________________________________

This e-mail and any files transmitted with it may be proprietary and are 
intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this e-mail in error please notify the sender. 
Please note that any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of Exelis Inc. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. Exelis Inc. accepts no liability for any damage caused by any virus 
transmitted by this e-mail.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to