OpenNETCF 2.2 WirelessZeroConfig problem

  • Thread starter Thread starter Skin Diver
  • Start date Start date
S

Skin Diver

I seem to be getting a null pointer exception when I use the
AddPreferedNetwork method.

I can enumerate my wireless interfaces OK and everything else is comming
back as expected.

This might be the same problem that Andy Baker eluded to in a earlier post.

Even when I use Chris's example:

if (wzcInterface != null)
{
byte[] key = null;
bool b = wzcInterface.AddPreferredNetwork("MyOpenNetwork1", true,
key, 1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
b = wzcInterface.AddPreferredNetwork("MyOpenNetwork2", true, key, 1,
AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
b = wzcInterface.AddPreferredNetwork("MyOpenNetwork3", true, key, 1,
AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
}



It throws the exception.

Any ideas?
 
It worked when I wrote it. :)

Seriously though, log it in our bugzilla database. That's how we track bugs
for reproduction and fixing. While I read these forums, I don't try to
repro everything posted here (and in fact I'm often not the one who fixes
SDF bugs anyway).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Thanks for the reply Chris.
Found problem on my end.
Its working.



Chris Tacke said:
It worked when I wrote it. :)

Seriously though, log it in our bugzilla database. That's how we track
bugs for reproduction and fixing. While I read these forums, I don't try
to repro everything posted here (and in fact I'm often not the one who
fixes SDF bugs anyway).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



Skin Diver said:
I seem to be getting a null pointer exception when I use the
AddPreferedNetwork method.

I can enumerate my wireless interfaces OK and everything else is comming
back as expected.

This might be the same problem that Andy Baker eluded to in a earlier
post.

Even when I use Chris's example:

if (wzcInterface != null)
{
byte[] key = null;
bool b = wzcInterface.AddPreferredNetwork("MyOpenNetwork1", true,
key, 1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
b = wzcInterface.AddPreferredNetwork("MyOpenNetwork2", true, key,
1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
b = wzcInterface.AddPreferredNetwork("MyOpenNetwork3", true, key,
1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
}



It throws the exception.

Any ideas?
 
The perfect bug report!

Paul T.

Skin Diver said:
Thanks for the reply Chris.
Found problem on my end.
Its working.



Chris Tacke said:
It worked when I wrote it. :)

Seriously though, log it in our bugzilla database. That's how we track
bugs for reproduction and fixing. While I read these forums, I don't try
to repro everything posted here (and in fact I'm often not the one who
fixes SDF bugs anyway).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



Skin Diver said:
I seem to be getting a null pointer exception when I use the
AddPreferedNetwork method.

I can enumerate my wireless interfaces OK and everything else is comming
back as expected.

This might be the same problem that Andy Baker eluded to in a earlier
post.

Even when I use Chris's example:

if (wzcInterface != null)
{
byte[] key = null;
bool b = wzcInterface.AddPreferredNetwork("MyOpenNetwork1", true,
key, 1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
b = wzcInterface.AddPreferredNetwork("MyOpenNetwork2", true, key,
1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
b = wzcInterface.AddPreferredNetwork("MyOpenNetwork3", true, key,
1, AuthenticationMode.Open,
WEPStatus.WEPDisabled, null);
}



It throws the exception.

Any ideas?
 
Back
Top