Compiled TvService crashes when tuning (1 Viewer)

mjs

Portal Member
May 26, 2006
6
0
125
Hi,

I tried to use/debug my own compiled versions of TvService but I get a FatalExecutionEngineError (0xc0000005) at address "0x7f5350c6". The debugger stops at the following line

Code:
enumMedia.Next(20, mediaTypes, out fetched);

in function AddAndConnectBDABoardFilters of the class TvCardDvbBase.

Any idea why this happens?

I am using VS2005 + SP1 + Vista-Fix for SP1 on Vista AMD64.

Regards,
Mark
 

mjs

Portal Member
May 26, 2006
6
0
125
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
 

Users who are viewing this thread

Top Bottom