In both PDA and PC applications, I am having a problem where when I close the program (runtime or in debug mode), it doesn't seem to fully close, and I believe it is related to the Bluetools application. (The problem existed on PDA, never on PC, then I ported all of my bluetooth code over to PC and now it does it.) Is there best practice for discarding all bluetools objects on exit, to make sure all threads it may be using are also terminated?
I've tried this with no success:
manager = null;
m_network = null;
currentService = null;
BTstream = null;
I don't see anything differently being done in the FindAndConnect example, but that example does not have the same problem.
Just looking for suggestions.