Re: Struct Aligment set to 1 byte caused gethostbyname() access violat



That really work for nonmanaged code but in managed code that work only from
/Zp4 and above , for /Zp1 and /Zp2 I even can't link it
Arkady

"Vladimir Scherbina" <vladimir.scherbina@on_gmail_com> wrote in message
news:uAZCJ5rxGHA.4044@xxxxxxxxxxxxxxxxxxxxxxx
This seems to be some bug in your application, not the problem of
gethostbyname. Try to use attached source: does it works when you set Zp1?

--
Vladimir

"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B628CA45-613B-4D69-A3CC-C568272CB68A@xxxxxxxxxxxxxxxx
Hi, Friends.

In my program, the compiler option "Struct Member Aligment" set to "1
Byte
(/Zp1)", then the calling of "gethostbyname" caused access violation, but
if
I set the option to "Default", then no crash.

Does anyone encounter the problem in Visual C++ 2005 ?




.