Reply to thread

I had to change the "Target Platform" from "Any CPU" to "x86" to work around this problem. This has the nice side-effect that I can enable native debugging.


Anyway, it seems to be a problem in the .NET runtime for x64 and not a problem of MediaPortal's code because IntPtr members don't automatically get an 8-Byte-Alignment. IOW: The AM_MEDIA_TYPE structure has a size of 88 bytes (instead of 80 bytes) on x64 and 72 bytes on x86. Any idea how to fix this problem?


EDIT: I just tried to temporarily add two member variables to this structure but this doesn't help either. There seems to be another problem too.


Regards,

Mark


Top Bottom