Well, the error is this:
ReceiveLoop error (1): An error message cannot be displayed because an optional resource assmebly containing it cannot be found
The code producing this is:
public
void receiveLoop()
{
int count = 0;
try
{
string strReceived;
btListener = new BluetoothListener(ServiceName); count++;
btListener.Start(); count++;
strReceived = receiveMessage(MAX_MESSAGE_SIZE); count++;
while (listening)
{
//---keep on listening for new message
if (strReceived != "")
{
this.Invoke(new EventHandler(UpdateTextBox)); count++;
strReceived = receiveMessage(MAX_MESSAGE_SIZE); count++;
}
}
}
catch (Exception e)
{
MessageBox.Show("ReceiveLoop error (" + count + "): " + e.Message);
}
}
I put the count++; in myself to see where the exception was being generated, as the error message itself is not very useful. As you can see, it's occuring on the:
btListener.Start(); count++;
line, but any more than than I can't tell you.
Regards,
Matt. W.