Why does my DLL reference count go up by one every time I create and exit a thread? If you use a wrapper, you need to follow the wrapper’s rules. Click here to read the article