Hi.
I invoke method from other thread which did not create ui.
Appears to work well...
DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR)));
But I need return value from Add method, so I do...
int Index = (int)DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR)));
Unfortunately I get an error... "Object reference not set to an instance of an object"
I'm having trouble understanding what that means in this context and how it occurs.