MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-12-20, 22:24   #1 (permalink)
mjs
Portal Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Default Compiled TvService crashes when tuning

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

Last edited by mjs; 2007-12-22 at 17:55.
mjs is offline   Reply With Quote
Old 2007-12-22, 17:55   #2 (permalink)
mjs
Portal Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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

Last edited by mjs; 2007-12-22 at 19:06.
mjs is offline   Reply With Quote
Reply

Bookmarks

Tags
compiled, tuning, tvservice

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tvservice crashes when exiting setupTV. gibman pre 1.0 RC1 6 2008-02-02 13:41
MediaPortal crashes when auto tuning dvb-c bwuk Installation, configuration support 7 2007-11-28 16:03
TVService crashes instantly when closing MediaPortal/SetupTV.exe kolizz pre 1.0 RC1 2 2007-04-20 20:11
TVService crashes MediaTobiPortal pre 1.0 RC1 7 2007-01-28 16:43
tvservice.exe crashes when client is connecting infinityloop fixed TV-Server / Client Bugs 2 2006-11-21 06:39


All times are GMT +1. The time now is 09:53.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress