BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-28-2009, 05:18 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9500
PIN: N/A
Carrier: warid
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default UsbClient-Device Communication

Please Login to Remove!

hi ,
my question is to mark soham regarding the VC UsbClient and GCF connection of the BB appliaction.

mark ,
i have made an java application which uses the VC UsbClient code as a dll it connects to the device and fetches some information and sends some information but the problem is some time this connection breaks and in the VC the event method virtual HRESULT STDMETHODCALLTYPE raw_OnClose( void ) does not fire every time , some time it does some time it does not on this event i have set up the boolean flag which actually indicates that the connection has been lost then i call device channel release() method and then makes it to NULL as it has been taught in the VC UsbClient demo.

therefore when i set the channel to NULL some time it hangs and does not come back which leads my application to hang.

_deviceChannel->Release();
_deviceChannel = NULL; // this is where it some time gets sleep and never comes back.

note : with out _deviceChannel->Release(); i face same issue.

am i missing some thing in the logic ?

how can i sustain the connection period longer it runs some time 30 minutes some time 2-3 or may be 4 hours and some time it disconnects in less than 1 minute.

is it because of device processor busy with other stuff ?

please help , thanks in advance.
Offline  
Old 07-28-2009, 08:28 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

AFAIK, Mark Sohm does not monitor this forum - he is a RIM employee and monitors the RIM support forum.

Try here:

Java Development - BlackBerry Support Community Forums
Offline  
Old 07-28-2009, 11:57 PM   #3 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9500
PIN: N/A
Carrier: warid
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thankx Dougsg38p !
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.