I'm getting the message "NULLReferenceException: Object reference not set to an instance of an object"
when executing the following:
if
(this->mycontrol->InvokeRequired == true){
this->mycontrol->Invoke(gcnew MethodInvoker(this,&myForm::controlDelegate));
}
The exception refers to the line that calls the Invoke method.
This does not happen consistently. Most of the time there is no exception.
Any suggestions
Thanks.
Paul