Is objects created using COM(component object model) in C++, will take heap allocated or stack allocated memory?
Is objects created using COM(component object model) in C++, will take heap allocated or
Share
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.
Heap. Call to COM API yields an object and the API provides the caller with a handle to it (this actually corresponds to a pointer). Stack allocation would’ve made the handle to reference a freed memory once the call to COM API has returned.