Click here to Skip to main content
15,913,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reading CSV Pin
Guffa23-Feb-06 10:09
Guffa23-Feb-06 10:09 
GeneralRe: Reading CSV Pin
john3423-Feb-06 10:32
john3423-Feb-06 10:32 
QuestionMonitoring Threads in C# and Windows CE Pin
AISchreiber23-Feb-06 7:24
AISchreiber23-Feb-06 7:24 
QuestionCombobox question Pin
VPMahank23-Feb-06 7:00
VPMahank23-Feb-06 7:00 
AnswerRe: Combobox question Pin
Draders2323-Feb-06 8:20
Draders2323-Feb-06 8:20 
GeneralRe: Combobox question Pin
VPMahank23-Feb-06 12:03
VPMahank23-Feb-06 12:03 
Questiondisplay calendar in: days, weeks, month and year Pin
Andre da Silva Carrilho23-Feb-06 6:53
Andre da Silva Carrilho23-Feb-06 6:53 
QuestionIndexOutOfRangeException during OnPaint Pin
Pseudo Quasi23-Feb-06 6:32
Pseudo Quasi23-Feb-06 6:32 
I have a program that has 5 worker threads constantly monitoring and changing a static DataTable. The DataTable is in a DataSet and is bound to a main DataGrid in this manner.

MainGrid.SetDataBinding(DSet,DBox.TableName);

The binding works fine and will add and change data with no problem. The problem comes when one of the worker threads removes a row from the DataTable. About 50% of the time I get an IndexOutOfRangeException thrown in the OnPaint of the main DataGrid. Each time there is a different row that caused the problem. ie "No Index at Row 5" This is how I am removing the rows.

if(MasterLock.Available(-1,10))<br />
			{<br />
				try<br />
				{<br />
				        this.Rows.Remove(row);<br />
					this.AcceptChanges();<br />
				}<br />
				catch(Exception _i)<br />
				{<br />
					_i.ToString();<br />
				}<br />
				finally<br />
				{<br />
					MasterLock.Release();<br />
				}<br />
			}


Any ideas?
AnswerRe: IndexOutOfRangeException during OnPaint Pin
Nicholas Butler23-Feb-06 8:05
sitebuilderNicholas Butler23-Feb-06 8:05 
QuestionDataSet to CSV file Pin
zaboboa23-Feb-06 6:12
zaboboa23-Feb-06 6:12 
AnswerRe: DataSet to CSV file Pin
Colin Angus Mackay23-Feb-06 12:20
Colin Angus Mackay23-Feb-06 12:20 
Questioncan't get Texture to draw in DirectX Pin
melanieab23-Feb-06 5:22
melanieab23-Feb-06 5:22 
AnswerRe: can't get Texture to draw in DirectX Pin
Andy Moore23-Feb-06 6:09
Andy Moore23-Feb-06 6:09 
QuestionClosing a form and enable another one! Pin
alee15.10.8823-Feb-06 4:52
alee15.10.8823-Feb-06 4:52 
AnswerRe: Closing a form and enable another one! Pin
Nicholas Butler23-Feb-06 5:18
sitebuilderNicholas Butler23-Feb-06 5:18 
GeneralRe: Closing a form and enable another one! Pin
alee15.10.8823-Feb-06 20:43
alee15.10.8823-Feb-06 20:43 
QuestionReading and writing to text file simultaneously Pin
liqnit23-Feb-06 3:39
liqnit23-Feb-06 3:39 
AnswerRe: Reading and writing to text file simultaneously Pin
yoaz23-Feb-06 10:00
yoaz23-Feb-06 10:00 
QuestionConvert an Image Pointer Into a Bitmap Pin
redfish3423-Feb-06 3:22
redfish3423-Feb-06 3:22 
AnswerRe: Convert an Image Pointer Into a Bitmap Pin
Nicholas Butler23-Feb-06 3:40
sitebuilderNicholas Butler23-Feb-06 3:40 
GeneralRe: Convert an Image Pointer Into a Bitmap Pin
redfish3425-Feb-06 3:24
redfish3425-Feb-06 3:24 
QuestionWMI Exceptions/Updating List View Pin
autekre23-Feb-06 3:20
autekre23-Feb-06 3:20 
AnswerRe: WMI Exceptions/Updating List View Pin
Praveen Nayak23-Feb-06 19:00
Praveen Nayak23-Feb-06 19:00 
Questionpublic variables Pin
ddpn4223-Feb-06 3:08
ddpn4223-Feb-06 3:08 
AnswerRe: public variables Pin
Le centriste23-Feb-06 3:25
Le centriste23-Feb-06 3:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.