Hi everybody,

i try to code an program with bluetooth over winsock and i´ve got some problems. The current program works fine until i plug off the bluetooh radio. Then i got a bluescreen with following message:

"You may receive a "STOP 0x00000035 NO_MORE_IRP_STACK_LOCATIONS"
error message when you try to log on to a domain"

After this i debug my program and find the position of the problem.
The function connect().

I have an Socket this one i want to connect to the device. Before i check the bluetooth radio is available. And then i call connect().

And now it crash if i plug off the radio in this time.
This problem i dont got because debugging. Its in the release.

But why?
I cant understand this problem.
Why the Bluescreen? Is there no security?

I hope any body can help me.
Thanks a lot.

Greetings Tobias