smallnews
Posts: 2
Joined: Mon Mar 16, 2009 6:47 am
Location: China

How to stop the ObexObjectPush?

Mon Mar 16, 2009 7:14 am

Hi there,

I use Franson Bluetools(.net 2.0) and it works very well~thx~
But I get a problem where I send a file to a BlueTooth device.
The form will be dead when the device does't response it.
I can't do anything with it until the device response it or two minutes later.
If the sending can work at backgroud,I think I can stop it...
So can someone tell me,how to deal with this problem?

the key codes:
m_streamCurrent = m_serviceCurrent.Stream;

Thanks for help.
smallnews

share yours,share mine

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: How to stop the ObexObjectPush?

Mon Mar 16, 2009 11:33 am

Spin it off in a separate thread.

Regards,
Jonas

smallnews
Posts: 2
Joined: Mon Mar 16, 2009 6:47 am
Location: China

RE: How to stop the ObexObjectPush?

Tue Mar 17, 2009 7:23 am

thank you for your help~
I have solved the problem.

System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(Run));

share yours,share mine

Return to “BlueTools”