Re: unmanaged structure layout error

Benjamin Schwehn <[email protected]> Wed, 11 Nov 2009 20:35:17 +0000
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
On 11.11.2009 20:23, Benjamin Schwehn wrote:
>> I'm getting this error message when the system tries to load the type:
>>
>> *Could not load type '_S' from assembly '...' because it contains an
>> object
>> field at offset 134 that is incorrectly aligned or overlapped by a
>> non-object field.*
>
> It's not caused by the string.
> Arrays must be DWORD aligned, so you can't have


Sorry, I meant QWORD aligned, i.e. 64bit - aligned. However this only 
applies to running on an x64 system, so it might not actually cause your 
problem after all.

Ben

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives