how can we avoid allocation done by Marshal::StringToHGlobalAnsi?

Posted by KaluSingh Gabbar on Stack Overflow See other posts from Stack Overflow or by KaluSingh Gabbar
Published on 2010-06-02T23:02:45Z Indexed on 2010/06/02 23:04 UTC
Read the original article Hit count: 277

Filed under:
|
|
|

my wrapper from managed to unmanaged is handling a lot of data and this Guy would call new for each of them, which is a big hit for me. So my question is :

can I allocate a chunk of unmanaged memory and use it to convert the managed data types to unmanaged by hand.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c++