I have a module for C ++ that receives asynchronous data from the WMI module. But if you ask him for a while, I get this error and only get one answer on the first call. How can I fix this? Changes should not be made after the initialization should be started before transmission or reception parameters.
Just go into this problem today, this error message means CoInitializeSecurity
has already been called (it should be called once per procedure). I indicate that CoInitializeSecurity is called, this flag is set when CoInitializeSecurity is called for the first time , After checking the flag, the subsequent call can be avoided. Keeping multithreading in mind, you can add unique lock to this code block.
No comments:
Post a Comment