Trouble with IPAddress class
I am ripping my hair out on this one.
The constructor for this class accepts an argument of byte[]:
public IPAddress(byte[]);
It will not accept a byte array. Even if I do the following it throws an exception.
//assume ipa is an instance of IPAddress
byte[] a = ipa.GetAddressBytes();
ipa = new IPAddress(a);
It throws an exception, i have tried manually creating a byte array with 1,2,3,4,and 5 elements. They all cause an exception. It compiles fine, no arguments until you reach this point at runtime and it throws an exception.
Please help!
-pfoh

shimtannyRank #3,312 · 434 pointsPosted Feb 25, 2005, 6:20 AM EST
jonas.pfoh5 pointsPosted Feb 25, 2005, 6:42 AM EST
shimtannyRank #3,312 · 434 pointsPosted Feb 25, 2005, 7:56 AM EST
jonas.pfoh5 pointsPosted Feb 25, 2005, 8:22 AM EST
shimtannyRank #3,312 · 434 pointsPosted Feb 25, 2005, 11:58 PM EST