Hi all,I am very new to threading ..I have to make my application multi threaded .This is what i have read and made .since function needed paramters and in Threadstart i cann't pass parameter function i created a class in which i have passed parmater.
ClsGetValueData clgetRec = new ClsGetValueData (this.tabPageRiskViewer,comboBoxRiskPortfolio.SelectedItem.ToString(),dateTimePickerMarketAsOf.Value, checkBoxLive.Checked ,ref externalData,MyControlArray, tabControlViewer); Thread thrd = new Thread(new ThreadStart(clgetRec.GetValuesData)); thrd.Start();
Icall this function I have to call COM component I create object of this COM component and then call the required function.Now the problem is that the threading is not happening.Please suggest what i should do..
LynxProxyLib.LynxProxyClass L =
new LynxProxyLib.LynxProxyClass(); object obj= L.xAtlasLoadTrades(scomboBoxRiskPortfolio,sWhereclause,sdateTimePickerMarketAsOf,null,null,null,true,null,null,null);
Regards,
Neetu.