OpenNETCF connection manager.... again -_-

  • Thread starter Thread starter Francesco
  • Start date Start date
F

Francesco

I can't understand why, today my little connection manager component
works no more.

This component uses OpenNETCF connection manager to establish a GPRS
connection. One of the "features" of that library (the opennetcf
one)(and of the underlying microsoft APIs) is that you can't
disconnect if the gprs connection is used by some other application
(as says Neil Cowburn in a previous post). Even with this "feature",
my component did disconnect if the connection was just dialled, and
not used. Tihs was true until yesterday...

This morning I came to work, and, ta-dan! the disconnect method works
no more, no way to disconnect even connections just dialled. I can't
understand why!

Can anyone suggest me some parameters i should check about this
problem? thanks
(I dial a GPRS, exclusive connection and then try to disconnect it
using always openNETCF connection manager)

Francesco
 
Francesco,

Can you tell me if anything changed on your device in the interim time
between it working and not working? Maybe you installed a new application or
changed a config setting somewhere. From my experience, anything that makes
a request for a connection will keep the connection open when you try to
disconnect.

Can you provide details of the OpenNETCF bits you are using: is it SDF v1.0,
v1.1 or are you using the ConnectionManager bits from source code? If it's
from source code, when did you last refresh the code from the website?

--Neil
 
Neil Cowburn said:
Francesco,

Can you tell me if anything changed on your device in the interim time
between it working and not working? Maybe you installed a new application or
changed a config setting somewhere. From my experience, anything that makes
a request for a connection will keep the connection open when you try to
disconnect.

Can you provide details of the OpenNETCF bits you are using: is it SDF v1.0,
v1.1 or are you using the ConnectionManager bits from source code? If it's
from source code, when did you last refresh the code from the website?

--Neil

Thanks Neil;
I'm using OpenNetCF sdk v1.1, but I changed the connectionManager.cs
file with the one online on the source browser, about une week ago.
Nothing changed on the device (ppc2003), nothing sholud have changed
about connection requests.
The only thing I changed, I tried to use the binaries of the sdk
(1.1), putting the new connectionmanager.cs file in my project, adding
connectioninfo as an internal class and changing namespace.
When I realized that disconnect method works no more, I put all the
environment as was before this change but... it still doesn't works...

Francesco
 
Francesco,

To be honest with you, I've never ever had any problems disconnecting an
exclusive connection. I've only ever encountered what you describe with
non-exclusive connections.

Since we released SDF v1.0 (not SDK), I did some major work on the
connection manager, which it sounds like you have seen. I really can't tell
you anything more without knowing what processes are running and what
connections you have open. Try running Netstat
(http://www.pocketgear.com/software_detail.asp?id=12709) and check for any
established connections which may be preventing Connection Manager from
releasing the connection. Incidently, the handle is exposed so you can
actually go take a look at the memory address and if it is indeed being
released.

--Neil
 
Infact it seems very strange to me that exclusive or non-exclusive, is
the same for my ppc ... Anyhow, i wasn't very clear to explain my
problem... because it isn't clear to me too. I'll take a look at
netstat, to see if I understand something about that. If i will come
out of this trouble, I'll post a brief analysis.
Thanks
Francesco
 
Back
Top