Knowledge Base

Knowledge Base
Subject: [Normal Bug] Exception when loading image in new manufacturer form
Status Resolved - 8.0.1.1370
Product WireCAD v8
Product Level PRO
Database Type SQL Server
Build Number (last 4 digits of version) 1368

Message

Customer
When trying to save a new manufacturer with a picture i get the following exception:

Unable to cast object of type 'System.Drawing.Bitmap' to type 'System.Byte[]'.
Exception type: System.InvalidCastException

at WireCAD.frmNewManufacturer.bbSave_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.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.RibbonControl.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.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Importing the image in the grid doesn't give this exception.
07-January-2016 (05:06 AM)
I can recreate this issue.
07-January-2016 (06:58 AM)
Support
Fixed in 1370
08-January-2016 (10:55 PM)
Support
Customer
Image in the New Equipment Form doesn't work as well. No exception but a red cross with the text: Invalid Value.
12-January-2016 (05:50 AM)
Confirmed and fixed in 1370
12-January-2016 (09:05 AM)
Support