G
Guest
I'm receiving a fixed length string with fixed length fields that I need to
break apart. Ideally I'd like to take the string and put it into a Structure
and then access the individual fields from there.
I tried converting the string to a byte array and then used a
Marshal.PtrToStructure to do the move but get a null reference exception in
mscorlib.dll. All the paramers look valid going into the call.
Any ideas how to fix the error or is there another way to do this?
break apart. Ideally I'd like to take the string and put it into a Structure
and then access the individual fields from there.
I tried converting the string to a byte array and then used a
Marshal.PtrToStructure to do the move but get a null reference exception in
mscorlib.dll. All the paramers look valid going into the call.
Any ideas how to fix the error or is there another way to do this?