x86 / x64 mixup Bug (1 Viewer)

miz

Portal Member
July 28, 2007
5
0
Home Country
Germany Germany
TV-Server Version: SVN Snapshot 07-25-2007--01-00-Rev15317
MediaPortal Version: 0.2.3 RC1, Snapshot Rev15317
Windows Version: Windows Vista x64 (!)


Error Description:
After installing the latest snapshot (RC1 alone works!), neither Media Portal nor the configuration utility can be launched. This is because of a BadImageFormatException that is issued by the runtime because of the target platform settings. This problem will only occur on x64 OSes.

Cause:
There is at least one Assembly that is set to target the x86 architecture (possibly because of a native DLL it references, or because it wants to use a database engine that does not exist for x64, or because of no reason at all ;) ).
Because the main programs (mediaPortal.exe and configuration.exe) are set to target 'any CPU', the runtime will JIT-compile them to x64. When the program than tries to load the x86 targeted DLL, the runtime issues the exception.

Fix:
Please be sure to set the target CPU architecture in the main assemblies (.exe) to x86 whenever there is one DLL that must be set to this CPU target.

Thanks,
Michael
 

ronilse

Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    MediaPortal should be set to target x86, but seems like the MP installer it's set to any cpu, will send the dev a note so he can change it to x86.

    Thanks for reporting.

    Regards
    Roy
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    Latest svn works fine here on x64.

    Regards
    Roy
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    This bug was in svn release & should now with latest build be fixed, see other post about the same.......

    Regards
    Roy
     

    miz

    Portal Member
    July 28, 2007
    5
    0
    Home Country
    Germany Germany
    it works fine now, thank you!

    BTW: how long does it take after a fix was made in SVN before its published in the snapshots?

    thanks
    michael
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    The snapshot was published earlier today (should be latest), but there can be issues with TVE3 & that will probably be solved later today.

    Regards
    Roy
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    A update:
    TVE3 should now work with x64, grab latest, test it & report back, give many thanks to broceliande for that one ;-)

    Regards
    Roy
     

    miz

    Portal Member
    July 28, 2007
    5
    0
    Home Country
    Germany Germany
    I did it yesterday. It worked fine, thanks!
     

    Users who are viewing this thread

    Top Bottom