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?
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?