Win64 gethostbyname() exception

Under Win64 (amd64) I'm doing the following system call:

struct hostent *lpHost;

if ((lpHost = gethostbyname(szHost)) == NULL)

return false;

When doing so everything goes fine but in the VS2005 debug "output" window I see the following silent exception:

First-chance exception at 0x7d4e228c in mytest.exe: 0x000006C5: The tag is invalid.

I have verified that the code is correct and that everything works as it's suppose to. Therefore I do not understand this exception. It seems to be harmless since everything goes just fine but naturally I'd like to get it removed or find a reason for this happening.

Any ideas

Thanks in avance.

-- Henrik



Answer this question

Win64 gethostbyname() exception