iScientist
Programmer
I am receiving a WSAEFAULT error from a socket send. When i trace into the socket call a sysenter instruction (fast kernel call) is returning C00002C5 (DATA ALIGNMENT FAULT).
From this I figure the problem is with alignment of stack.
The stack backtrace to the socket call involves some of our assembler code. If I remove a single push instruction the problem goes away (more confirmation of stack aligment problem). Question is how do I align the stack to prevent this from happening.
many thanks for any help given
From this I figure the problem is with alignment of stack.
The stack backtrace to the socket call involves some of our assembler code. If I remove a single push instruction the problem goes away (more confirmation of stack aligment problem). Question is how do I align the stack to prevent this from happening.
many thanks for any help given