Home > Software engineering >  Vc MSXML2 smart Pointers
Vc MSXML2 smart Pointers

Time:09-26

Excuse me, I in the class member defines the following Pointers only
Class A
{
MSXML2: : IXMLDOMElementPtr XXX;
}

And where do I need to call CoInitialize and CoUninitialize?
The constructor calls CoInitialize
Then the destructor call CoUninitialize?
I found this also not line, smart Pointers and memory access errors, XXX will run to comip. The release in the h () error

CodePudding user response:

In the analytic function call xx. The first Release, and then call CoUninitialize

CodePudding user response:

Look to the successful CoInitialize first, and then every step of the pointer to create success
  • Related