Is it OK/possible to have a shared memory in a COM object which will be consumed by applications built using C# and/or C++?
Can C# access shared memory in COM object without crash?
Thanks,
Adi Barda
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t really see what role the COM object plays in this. But, no, there isn’t anything that makes MMFs fundamentally incompatible with managed code. They are merely very awkward to use since you need pointers to access them.
Support for MMFs is coming in .NET 4.0. It is probably too soon to use that in production code. But do make sure to take a look at the API so that what you do now is going to fit the API well when you switch.