Home Forums Feature Requests Packed Structs For C/C++ SDK

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4742
    Tyler
    Participant

    Used packed structs in the Eyex header files in the C/C++ SDK.

    Not everyone has the default Struct Member Alignment setting of 8-bytes!

    This can cause stack corruption issues when 32 bytes is copied into a struct that my code thinks is 28 bytes.

    Reference:
    https://msdn.microsoft.com/en-us/library/xh3e3fd0.aspx

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.