Главная страница | назад

Article #17739: Mis aligned data in a .dll

 Question and Answer Database

FAQ2739C.txt   Mis aligned data in a .dll
Category   :IDE
Platform    :Windows NT
Product    :   BC++5.x

I have written a dll, this dll has an object that takes a pointer to a class from an 
application object, when I try to access any data from the applicaion's class, the pointer 
seems to be 24 bytes off. What could be causing this?

Make sure that the options in the build are identical in both the .dll and the .exe. This 
problem can be caused by the .dll being set to multithread in the target experst and the 
.exe not.

6/8/98 9:05:47 AM

Last Modified: 01-SEP-99