In VC, I have an DLL file with memory alignment set as 1, and an EXE file memory alignment set as default (it’s 4). And I use classes of this DLL in EXE. Is there any potential risk with different memory alignment sets?
Many thanks!
In VC, I have an DLL file with memory alignment set as 1, and
Share
I assume by “memory alignment” you mean “structure packing” (/Zp). Yes, there can be problems if you have structures which require padding to achieve the specified alignment, since the two modules will pad differently.