.Connect() function not worling

Feb 17, 2014 at 8:36 AM
wm.Connect() function throws an exception please help


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using WiimoteLib;

namespace WiiTest
{
public partial class frmTest: Form
{
    Wiimote wm = new Wiimote();
    InputSimulator inSim = new InputSimulator();
    public frmTest()
    {
        InitializeComponent();
    }

    private void frmTest_Load(object sender, EventArgs e)
    {
        wm.OnWiimoteChanged += new WiimoteChangedEventHandler(wm_OnWiimoteChanged);
try
{
wm.Connect();
MessageBox.Show("Connectedd");
wm.SetLEDs(true, true, true, true);
}
catch (Exception x)
{
            MessageBox.Show("Exception: " + x.Message);
            this.Close();
}
}
}
Coordinator
Feb 17, 2014 at 5:29 PM
Need more info than that...what's the exception? What Wiimote device are you using?