Hey guys,
I've got this code implemented below in my UI form... and calling it from another thread. On debugging the 'else' part throws an TargetParameterCountException...
I'm clueless has to why...
public delegate void SolveDrawMaze(Cell aCell);
public void SolveDraw(Cell aCell)
{
if (InvokeRequired)
{
this.BeginInvoke(new SolveDrawMaze(DoMe));
}
else
{
DoMe(aCell);
}
}
public void DoMe(Cell aCell)
{
}