how to solve this error in multithreading " A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in System.Data.dll" in output windowI make 10 thread in that i am going to save record to mysql and change continuesly value and  save repeatedlly but i got as following msg in output window . <div><br/></div> <div>&quot;A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in System.Data.dll&quot;<br/></div> <div>and some of threads are automatically ignored or aborted  what ever happen but only 4 to 5 thread isalive at last</div> <div><br/></div> <div><br/></div> <div>I am new in threading so plz help me out on this</div> <div><br/></div> <div>This occur when i use more than 4 thread .</div>© 2009 Microsoft Corporation. All rights reserved.Tue, 16 Jun 2009 02:12:01 Zcb9601e8-d849-435d-9030-e08709c98763http://social.msdn.microsoft.com/Forums/en-US/parallelextensions/thread/cb9601e8-d849-435d-9030-e08709c98763#cb9601e8-d849-435d-9030-e08709c98763http://social.msdn.microsoft.com/Forums/en-US/parallelextensions/thread/cb9601e8-d849-435d-9030-e08709c98763#cb9601e8-d849-435d-9030-e08709c98763sunstatehttp://social.msdn.microsoft.com/Profile/en-US/?user=sunstatehow to solve this error in multithreading " A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in System.Data.dll" in output windowI make 10 thread in that i am going to save record to mysql and change continuesly value and  save repeatedlly but i got as following msg in output window . <div><br/></div> <div>&quot;A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in System.Data.dll&quot;<br/></div> <div>and some of threads are automatically ignored or aborted  what ever happen but only 4 to 5 thread isalive at last</div> <div><br/></div> <div><br/></div> <div>I am new in threading so plz help me out on this</div> <div><br/></div> <div>This occur when i use more than 4 thread .</div>Fri, 12 Jun 2009 12:30:36 Z2009-06-26T18:11:43Zhttp://social.msdn.microsoft.com/Forums/en-US/parallelextensions/thread/cb9601e8-d849-435d-9030-e08709c98763#f76902cc-6cb5-4b18-8154-3b8beddcbd93http://social.msdn.microsoft.com/Forums/en-US/parallelextensions/thread/cb9601e8-d849-435d-9030-e08709c98763#f76902cc-6cb5-4b18-8154-3b8beddcbd93Hugo Rumayorhttp://social.msdn.microsoft.com/Profile/en-US/?user=Hugo%20Rumayorhow to solve this error in multithreading " A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in System.Data.dll" in output windowHi,<br/> You have a concurrency bug, you have to use different connections to run that in parallel, one connection per thread.<br/> The reason it crashes with exactly more than 4 is arbitrary and depends on system settings (number of cores) and load.<br/> <br/> Regards,<br/> HugoFri, 12 Jun 2009 12:34:42 Z2009-06-12T12:36:05Z