Why does IPAdress storage in objects immediate crash
IP = parsedIP
this line throws an exception that there is a socket error , without any reason, i just cant store an ipaddress objekt inside an objekt13 Replies
do u have a screenshot of your error with the code?
in IPAddress line 338
this doenst happen on the parsing, the parsing is successful ( its copied from docs here https://learn.microsoft.com/en-us/dotnet/api/system.net.ipaddress.parse?view=net-7.0 )
IPAddress.Parse Method (System.Net)
Converts an IP address string to an IPAddress instance.
it throws on setting the property
dont show decompiled code
show where its being called in your code
this is it currently
and the Host class from above
nothing more in the project
which line in this code throws the error?
line 22 which is
coll.Insert(local);
👀or atleast show the call stack window from here
ok
line 22, where is that?
coll.Insert(local);
what is the column type in your db table?
might be better to just have the property as a string
litedb doesnt have column types
i will store it as string
thanks