Hello all, i am making a multithreaded program which copies a file.
at the end of the file copy it will call a process to update a certain dropdownlist.
the following code will cause a stack overflow, i copied it from the MSDN library and took out the items i didnt need (parameters) and replaced it with my variables.
any help would be appreciated, it could well be that i overlooked something
at the end of the file copy it will call a process to update a certain dropdownlist.
the following code will cause a stack overflow, i copied it from the MSDN library and took out the items i didnt need (parameters) and replaced it with my variables.
any help would be appreciated, it could well be that i overlooked something
Code:
delegate void LoadList();
private void loadList()
{
if (ddlTools.InvokeRequired)
{
LoadList d = new LoadList(loadList);
d.Invoke();
}
else
{
//Clear our list
ddlTools.Items.Clear();
//Etc,,,
}
}
Comment