开发者

Heap memory size of the DLL loaded via .NET Interop

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜