- June 25, 2015
- 633
- 333
- Home Country
-
United Kingdom
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.
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.