theMK2k / MetropolisLauncher

A data-heavy Emulation & Gaming front-end for Windows
http://metropolis-launcher.net
Other
40 stars 3 forks source link

Adding an image through the user extras manager causes an error #27

Closed jxhicks closed 6 years ago

jxhicks commented 6 years ago

Trying to add an image through the user extras manager causes the following error:

Unable to cast object of type 'System.Drawing.Bitmap' to type 'cls_Extras_Result'.

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.InvalidCastException: Unable to cast object of type 'System.Drawing.Bitmap' to type 'cls_Extras_Result'. at Metropolis_Launcher.ucr_Emulation.bbi_USER_Extras_Manager_ItemClick(Object sender, ItemClickEventArgs e) at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarItemLink.OnLinkClick() at DevExpress.XtraBars.BarButtonItemLink.OnLinkClick() at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link) at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link) at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e) at DevExpress.XtraBars.Controls.CustomPopupBarControl.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at DevExpress.XtraBars.Controls.CustomControl.WndProc(Message& msg) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

theMK2k commented 6 years ago

Could you please elaborate the exact steps you take leading to the error?

theMK2k commented 6 years ago

No worries, I think I'm able to reproduce using the following steps:

Games & Emulation Main Screen -> Open USER Extras Manager -> Add Image -> From File -> choose some png -> Entry Appears (but no preview) -> Press OK -> ERROR

jxhicks commented 6 years ago

Yep, that's what is happening for me as well. I have gotten the error on two different machines (Windows 8.1 and 10) and with images of both .png and .jpg file type.

theMK2k commented 6 years ago

This bug isn't machine-dependant. Working on a fix as we speak :)

theMK2k commented 6 years ago

Fixed, see attachment and please test :)

Metropolis_Launcher_1.1.1b2_extras.zip

jxhicks commented 6 years ago

Working great now, thanks.

On Thu, Nov 30, 2017 at 9:59 AM, MK2k notifications@github.com wrote:

Fixed, see attachment and please test :)

Metropolis_Launcher_1.1.1b2_extras.zip https://github.com/theMK2k/MetropolisLauncher/files/1518482/Metropolis_Launcher_1.1.1b2_extras.zip

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/theMK2k/MetropolisLauncher/issues/27#issuecomment-348232534, or mute the thread https://github.com/notifications/unsubscribe-auth/AghV22hrjbexgprtWxqI56FQeg2eP9rZks5s7tDzgaJpZM4Qv612 .

-- -Hicks