> -----Original Message-----
> From: Discussion relating to the specifics of the C# and
> Managed C++ languages [mailto:DOTNET-CX@DISC...]
> On Behalf Of Alan Baljeu
> Sent: Monday, March 26, 2007 9:30 AM
> To: DOTNET-CX@DISC... > Subject: [DOTNET-CX] minimizing the cost of managed/unmanaged
> My program involves a significant amount of native C++ code
> and C# code, and I'm using VS 2003. There is necessarily a
> large amount of data which needs to be transferred between
> the two environments, using COM and/or PInvoke. How can I
> understand the costs involved in this transfer, and how can I
> minimize these costs?
Here's a document that should really help in answering the question. It's a 1100 page pdf
document called "Improving .NET Application Performance and Scalability".