Using wodKeys in multiple threads (General questions)
Is wodKeys thread-safe? I'm experiencing occasional exceptions and automatic breaks complaining about possible heap corruption when calling this method in multiple parallel threads:
hr = pKeys.CreateInstance(CLSID_Keys, NULL);
I do this in every thread:
IKeysPtr pKeys;
HRESULT hr = NULL;
CoInitialize(NULL);
hr = pKeys.CreateInstance(CLSID_Keys, NULL);
...
pKeys.Release();
CoUninitialize();
Am I doing something wrong?
Complete thread:
- Using wodKeys in multiple threads - mulloju, 2011-11-04, 09:49
- Re: Using wodKeys in multiple threads - wodDamir, 2011-11-04, 10:08
- Re: Using wodKeys in multiple threads - mulloju, 2011-11-04, 11:02
- Re: Using wodKeys in multiple threads - wodDamir, 2011-11-04, 11:49
- Re: Using wodKeys in multiple threads - mulloju, 2011-11-04, 12:14
- Re: Using wodKeys in multiple threads - wodDamir, 2011-11-04, 13:24
- Re: Using wodKeys in multiple threads - mulloju, 2011-11-04, 14:23
- Re: Using wodKeys in multiple threads - wodDamir, 2011-11-04, 13:24
- Re: Using wodKeys in multiple threads - mulloju, 2011-11-04, 12:14
- Re: Using wodKeys in multiple threads - wodDamir, 2011-11-04, 11:49
- Re: Using wodKeys in multiple threads - mulloju, 2011-11-04, 11:02
- Re: Using wodKeys in multiple threads - wodDamir, 2011-11-04, 10:08