#pragma pack(pop...) : more pops than pushes
Because your source code contains one more pop than there are pushes the #pragma pack stack may not behave as you would expect.
To fix this, ensure that your code includes the same number of pops as pushes.