Posted on: 7/14/2013 6:29:55 PM | Views : 249

Hi All,
 We have written a piece of code which uses multi thread concept to process the orders but its failing with "Index was outside the bounds of the array ".
It happens only some time even though the data for all the porders are same except order numbers.
Any idea why this error in Mulit threading?
try { DataSet dataset = DataAccess.ProcessOrders(); string headerId = string.Empty; string auditId = string.Empty; string mailId = string.Empty; string mailBody = string.Empty; ProcessThread objProcessThread = new ProcessThread(); objProcessThread.dataset = dataset; Thread _reprocessthread = new Thread(new ThreadStart(objProcessThread.processthread)); Thread _sendackthread = new Thread(new T ...

Go to the complete details ...