@MagicSNit is strange this kind of exception.did you try #pragma pack(1) on struct definition? have you try to add a dummy variable to align the other one?
_________________http://www.amigasoft.net