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

Win64 gethostbyname() exception
clstephenson
Actually I should have been a little more specific:
The problem shows when running Win32 code under Win64 (through WOW64). I did not test Win32 code on Win32 or Win64 code on Win64.
I'm 100% sure there is nothing wrong with the code. It works on 6 other platforms including linux, mac osx and solaris.
I'll write a bug report and link it here.
-- Henrik
ewaldt
If you verified that everything from your side is correct then please log a bug at http://lab.msdn.microsoft.com/productfeedback/default.aspx
Thanks in advance for taking the time to log the issue!
Thanks, Ayman Shoukry VC++ TeamAmirZargham
Here is the link back to the bug report.
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=6ae85861-76af-44fd-a275-d64b0835bfcf