Complex marshalling

http://blogs.msdn.com/jaredpar/archive/2005/07/11/437584.aspx

A very helpful explanation of marshalling, as well as “more complex than simple” marshalling.

I had a situation where I had to marshal a struct that contained a dynamic array of other structs. I wasn’t able to find anything on the web about marshalling dynamic arrays, other than this (and even then, this didn’t address that aspect in particular).

FYI, A custom marshaller is the solution, with manual IntPtr manipulation. Fun!

This entry was posted on Tuesday, March 14th, 2006 at 3:50 pm and is filed under programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply