开发者

Heap memory size of the DLL loaded via .NET Interop

开发者 https://www.devze.com 2023-04-13 05:35 出处:网络
I have a generic C++ dll which in which I have few structures. I am passing the structure data from the C#.net console based application and and I am trying to deep copy that structure inside my dll l

I have a generic C++ dll which in which I have few structures. I am passing the structure data from the C#.net console based application and and I am trying to deep copy that structure inside my dll like a copy constructor.

my problem is it seems the dll is runn开发者_如何学编程ing out of memory while allocating the memory using new after few allocations!! is there any heap memory allocation limitation for the generic dll's consumed by .net applications?

Solutions - I have tried creating my own heap using ::heapcreate() and used this handle to create my objects using new and it seems to work, whats not working is using normal operator new and deep copying structure with lots of wchar_t* on the deafault heap.

Any help or any information regarding memory allocations for the generic dll's consumed by .NET would really really help.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号