in reply to Free to wrong pool error while using thread
The error invariably means you are doing something wrong, but there are a variety of things that can cause it.
If you post your code, we will probably be able to identify it for you.
The start of some sanity?