home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
OnDeviceChange crashing in 64-bit version
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anthony Vaughan" data-source="post: 1302600" data-attributes="member: 153283"><p>Now that MediaPortal has gone 64-bit, any references to lParam should be converted to int64 rather than int32 or compared to zero without being converted.</p><p></p><p>An example of this is the OnDeviceChange method in MediaPortal.cs where the following fails:</p><p></p><p> if (msg.LParam.ToInt32() != 0)</p><p> {</p><p></p><p>The fix is to change this to:</p><p></p><p> if (msg.LParam.ToInt64() != 0)</p><p> {</p><p></p><p>or </p><p></p><p> if (msg.LParam != IntPtr.Zero)</p><p> {</p><p></p><p>There may be other places where this is happening but this example cropped up when I introduced a DVD player to my setup.</p><p></p><p>Hope this helps.</p></blockquote><p></p>
[QUOTE="Anthony Vaughan, post: 1302600, member: 153283"] Now that MediaPortal has gone 64-bit, any references to lParam should be converted to int64 rather than int32 or compared to zero without being converted. An example of this is the OnDeviceChange method in MediaPortal.cs where the following fails: if (msg.LParam.ToInt32() != 0) { The fix is to change this to: if (msg.LParam.ToInt64() != 0) { or if (msg.LParam != IntPtr.Zero) { There may be other places where this is happening but this example cropped up when I introduced a DVD player to my setup. Hope this helps. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
OnDeviceChange crashing in 64-bit version
Contact us
RSS
Top
Bottom