0

.NET 4.5, Win 8, 64bit

I have an IntPtr to 4 GB unmanaged array. I want to pass it async to a WCF NetPipes Windows Service, which is supposed to read it, push it to DB then deallocate it.

I am aware that the caller and the callee are on two different appdomains, so this might not be possible.

Is this possible and how?

Ofcourse, I can copy the data to a managed array then pass the managed array to the service, but this is not good performance-wise.

N.B. I asked a question of how to pass an IntPtr on a queue Passing an unmanaged pointer between two AppDomains (By indirect call) , the answer to this question and the other question will help me taking a design decision.

4

0 回答 0