12-18-2018 01:22 AM
I've just found a strange issue in my application and I suspect some kind of race condition.
It seems that InetPing() is somehow involved in this strange behavior and I call it from two different threads.
It can happen that sometimes the calls from the two threads are "simultaneous" and so I wonder if InetPing() is thread-sfae or it's not.
Could someone clarify this, please?
Solved! Go to Solution.
12-20-2018 08:42 AM
Hi Vix,
could you send the code that shows this strange behavior, please?
Regards,
Alessia
01-02-2019 01:28 AM
Hello Alessia,
thank you for your answer.
In the meanwhile I was able to find the reason for the issue and I'm going to report the solution here.
I don't know if InetPing() either is threadsafe or is not, but my issue came from another direction.
I try to explain:
int InetPing (const char *address, int *available, unsigned int timeout);
So a couple of errors from my side:
Handling them in the proper way fixed the issue.
01-07-2019 02:44 AM
Hi Vix,
thank you very much for sharing your solution!
Kind regards,
Alessia