Structs and byte array pointers
-
I am new to C# and am trying to call some old legacy C stuff that accepts as input a pointer to a struct that has several fields that are pointers to large byte arrays. I am able to get a clean build but am not able to run without getting an exception that says something like unable to marshal structure field of this type (it's referring to the array pointer (reference) fields). I have even tried unsafe mode but have had problems taking the address of an array. I am using the Beta-2 Visual Studio. tfbriscoe@msn.com Tom
-
I am new to C# and am trying to call some old legacy C stuff that accepts as input a pointer to a struct that has several fields that are pointers to large byte arrays. I am able to get a clean build but am not able to run without getting an exception that says something like unable to marshal structure field of this type (it's referring to the array pointer (reference) fields). I have even tried unsafe mode but have had problems taking the address of an array. I am using the Beta-2 Visual Studio. tfbriscoe@msn.com Tom
tfbriscoe wrote: I am using the Beta-2 Visual Studio Well, not sure of the exact changes in the
Marshal
class, however why don't you post a little code so everyone can take a look at what you are doing.
Nick Parker
You see the Standards change. - Fellow co-worker
-
tfbriscoe wrote: I am using the Beta-2 Visual Studio Well, not sure of the exact changes in the
Marshal
class, however why don't you post a little code so everyone can take a look at what you are doing.
Nick Parker
You see the Standards change. - Fellow co-worker