User475983607 posted
What is the actual error? Can you post the SQL code that causes the error?
This code pattern is a problem. mypostfunction() should be async.
for (int i=0; i< count; i++)
{
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
mypostfunction();
}).Start();
}