Home Forums Software Development Exception in "public void Connect" Reply To: Exception in "public void Connect"

#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