MPTouch - Mediaportal TouchScreen Plugin (2 Viewers)

MPTouch MainScreen Buttons


  • Total voters
    14
  • Poll closed .

sa_ddam213

Retired Team Member
  • Premium Supporter
  • March 3, 2009
    312
    281
    Canterbury
    Home Country
    New Zealand New Zealand
    Heyho,

    thanks for the new update! Unfortunately it still doesn´t work for me.
    If I´m starting MP, I still get my standard windows xp background
    picture.

    If I´m testing the display in the MPT-Setup, I´ll get following error:

    System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    bei MPTouchV2.TestForm.StartForm()
    bei MPTouchV2.TestForm..ctor()
    bei MPTouchV2.MPTouchSetup.button1_Click(Object sender, EventArgs e)
    bei System.Windows.Forms.Control.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    bei System.Windows.Forms.Control.WndProc(Message& m)
    bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
    bei System.Windows.Forms.Button.WndProc(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    I´m completely lost .... and I´m missing "my" MPT :-(

    Keep up the good work,

    Das Reich

    Does it do this on "Automatic" and "Custom"
    And on all displays?? Try your primary

    Im lost too :confused:

    Sa

    EDIT: Possible workaround till tomorrow >> Open MPTouchSettings.xml and manualy set Display to "\\.\DISPLAY1" or "\\.\DISPLAY2" save and start MP
     

    sa_ddam213

    Retired Team Member
  • Premium Supporter
  • March 3, 2009
    312
    281
    Canterbury
    Home Country
    New Zealand New Zealand
    Technick

    PS : For your information, I order a HDMI Dectective plus to be able to use this plugin with and whitout TV. Reception in 7 days, wait & see, I will inform you asap :)

    Hi Technick,

    I was just reading the new items and saw you're footnote over the HDMI detective. I've got this running for 2 years now (I'll thnik I was the first customer that bought the HDMI version :D) and its working perfect.
    No more auto-config in windows anymore when I'm turning off my TV, yessss that was my first hurdle.

    The second hurdle was managing the HTPC from the touch screen, thats why I love this plugin (2 years waiting, and no finally MPtouch is filling that gap, yesssss!)

    Cheers,
    John

    Just read your guys post and was thinking, I could add a feature to MPTouch that when a display is Detected/Removed it could set resolutions for both screens.

    So when a display is remove MPTouch will overlay Mediaportal.
    And when the display is detected MPTouch will set Resolution's and set MP and MPTouch to the correct screens

    And IN THEORY it should not be to hard.... hmm..

    What do you think??
     

    technick

    Portal Pro
    May 6, 2009
    566
    155
    Home Country
    France France
    Sorry but MP don't correctly detect screen change (it's why I bought a hdmi detective plus) so if a plugin change resolution MP will be lost. So no, for me, it will don't work (I'm perhaps wrong but I had many problems with this since a long time).

    One thing I think that it could be add to MPTouch is to seek in the video/music with the progress bar ;-)


    Johnnie
    The hdmi detective is a pure pleasure ! With MPTouch and this small hardware there is absoluty no problem with my zalman hd160xt plus. MPTouch need to be debug but I can already see that I have now exactly what it make me dream ;-)
     

    neelex

    Portal Pro
    March 16, 2009
    68
    3
    Does it do this on "Automatic" and "Custom"
    And on all displays?? Try your primary

    Im lost too :confused:

    Sa

    EDIT: Possible workaround till tomorrow >> Open MPTouchSettings.xml and manualy set Display to "\\.\DISPLAY1" or "\\.\DISPLAY2" save and start MP

    Hi sa_ddam213,

    I've tried again, but same effect as Das Reich explains. I always get the exception when pressing the Test Button in the config. And if starting MP only the normal windows background picture is shown. I had a look to the xlm file, but the value is set correct:

    <entry name="Display">\\.\DISPLAY2</entry>

    I can change to Display1, but nothing happens, the same when i try to use the other display in the config menu.


    Are there maybe differences in other windows languages or maybe driver related names (nvidia or ati). Only, maybe stupid, thoughts ;)

    Cheers
    Neelex
     

    sa_ddam213

    Retired Team Member
  • Premium Supporter
  • March 3, 2009
    312
    281
    Canterbury
    Home Country
    New Zealand New Zealand
    Does it do this on "Automatic" and "Custom"
    And on all displays?? Try your primary

    Im lost too :confused:

    Sa

    EDIT: Possible workaround till tomorrow >> Open MPTouchSettings.xml and manualy set Display to "\\.\DISPLAY1" or "\\.\DISPLAY2" save and start MP

    Hi sa_ddam213,

    I've tried again, but same effect as Das Reich explains. I always get the exception when pressing the Test Button in the config. And if starting MP only the normal windows background picture is shown. I had a look to the xlm file, but the value is set correct:

    <entry name="Display">\\.\DISPLAY2</entry>

    I can change to Display1, but nothing happens, the same when i try to use the other display in the config menu.


    Are there maybe differences in other windows languages or maybe driver related names (nvidia or ati). Only, maybe stupid, thoughts ;)

    Cheers
    Neelex

    The problem seems to be with the .NET framework . (for some reason in some country the display name gets trailing characters) only after changing a "public string" to a "static string" :confused::confused:

    the code has been the same for finding the display for the last 8 version's so very strange.

    will fix and post tonight
     

    sa_ddam213

    Retired Team Member
  • Premium Supporter
  • March 3, 2009
    312
    281
    Canterbury
    Home Country
    New Zealand New Zealand
    Found this on MDSN:

    There is a buffer overrun bug in the .NET Framework System.Windows.Forms.Screen class.

    I beleive the bug is in the System.Windows.Forms.NativeMethods.MONITORINFOEX strcut.

    The struct has the follow attribute: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto, Pack=4)]
    I think this attribute is incorrect (specifically the CharSet=CharSet.Auto part) and causes the marshaller to incorrectly marshal MONITORINFOEX structs.

    *** This is a very serious bug ***
    Incorrect marshalling means that the marshaller could attempt to read invalid memory and cause the .NET framework the crash.

    If the bug is in the MONITORINFOEX structure marshalling, all parts of the .NET Framework which use it might also experience similar bugs.

    Steps to Reproduce
    Run the following C# code:

    string deviceName = System.Windows.Forms.Screen.PrimaryScreen.DeviceName;
    ----------------------------------------------------------------------------------------------
    Actual Results
    Pasted from the VS2005 watch window:
    System.Windows.Forms.Screen.PrimaryScreen.DeviceName "\\\\.\\DISPLAY1\0\0\0\0蠭聗楤袳\0\0\0\0\0\0玸ꀈ" string
    ----------------------------------------------------------------------------------------------
    Expected Results
    Something like this:\\.\Display1

    There is an Microsoft update out there to fix this, Thats why it affects only some users.
    But to make sure MPTouch code has been changed to work around this issue just in case you don't have the update installed.


    It was tricky because I could not reproduce on mine (Thanks jblomb :D :D )

    MPTouch_Alpha_rev4 is up now and fingers crossed it's all good.

    Cheers Sa

    EDIT: also found this on MDSN:

    Posted by Microsoft on 23/08/2005 at 09:42
    We have been able to reproduce the bug you reported but because we are close to release and the fact that this is the way we shipped version 1.0 of the framework we do not have plans to fix this bug. Customer feedback is a critical part of a successful, impactful product release. Thank you for contributing to Windows Forms Whidbey.

    -mark
    program manager
    :mad::mad::mad::mad::mad::mad::mad::mad::eek:

    I'm no expert but wouldn't a buffer underun like this be a security threat because invalid memory is being read! ,Not cool
    So I guess there is no update out there like said, Anyway it shoul be sweet now


    I was thought that this idea was to clever for me to think of , LOl :D:D
     

    Johnnie

    MP Donator
  • Premium Supporter
  • December 12, 2008
    120
    4
    Home Country
    Netherlands Netherlands
    Just read your guys post and was thinking, I could add a feature to MPTouch that when a display is Detected/Removed it could set resolutions for both screens.

    So when a display is remove MPTouch will overlay Mediaportal.
    And when the display is detected MPTouch will set Resolution's and set MP and MPTouch to the correct screens

    And IN THEORY it should not be to hard.... hmm..

    What do you think??

    Hi sa_ddam213 and technick,

    Allthough I'm not an expert, I think that MPT cannot change the plug&pray feature of Windows (and to be honest I think its a pain in a HTPC multi screen setup) so thats why I bought the detective.

    And because I've got him allready, I think its fine so :D. Technick also mentioned that he is pleased with the detective.

    So please put you're effort in further development of this great plugin :p.

    And again, thanks for thinking with us!!!

    Johnnie
     

    Users who are viewing this thread

    Top Bottom