Home › Forums › Software Development › Exception in "public void Connect" › Reply To: Exception in "public void Connect"
23/02/2015 at 10:19 #2585
Patrik [Tobii]
Participant
Hello Nicola,
Are you calling InitializeComponent();
before or after you’re connecting the BehaviorMap
to the host instance? Make sure you call it before.
It should look something like this:
public MyForm()
{
// Initialize form components.
InitializeComponent();
// Connect the behavior map to the host.
Program.EyeXHost.Connect(behaviorMap1);
}
Best regards
Patrik