Re: Struct Aligment set to 1 byte caused gethostbyname() access violat
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 17:22:51 +0200
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 ?
.
- References:
- Re: Struct Aligment set to 1 byte caused gethostbyname() access violat
- From: Vladimir Scherbina
- Re: Struct Aligment set to 1 byte caused gethostbyname() access violat
- Prev by Date: Re: Struct Aligment set to 1 byte caused gethostbyname() access violat
- Next by Date: Re: hole punching imlementation
- Previous by thread: Re: Struct Aligment set to 1 byte caused gethostbyname() access violat
- Next by thread: Re: Struct Aligment set to 1 byte caused gethostbyname() access vi
- Index(es):