Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

SD 5 Can't add an icon to a winform

$
0
0

I can't add an icon from neither local resource nor project resource. The local resource's preview is blank, clicking import gives the similar errror, Requested range extends past the end of the array

Alex.

 

 

SharpDevelop Version : 5.0.0.4699-RC-910cbf41

.NET Version         : 4.0.30319.18444

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : English (United States) (en-US)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 198192kb

GC Heap Memory       : 50648kb

 

Exception thrown:

System.ArgumentOutOfRangeException: Requested range extends past the end of the array.

   at System.Runtime.InteropServices.Marshal.CopyToNative(Object source, Int32 startIndex, IntPtr destination, Int32 length)

   at System.Runtime.InteropServices.Marshal.Copy(Byte[ source, Int32 startIndex, IntPtr destination, Int32 length)

   at System.Drawing.Icon.ToBitmap()

   at ICSharpCode.FormsDesigner.Gui.ImageResourceEditorDialog.SetSelectedImage(Object image, Boolean isProjectResource)

   at ICSharpCode.FormsDesigner.Gui.ImageResourceEditorDialog.UpdateOnProjectResourceSelection()

   at ICSharpCode.FormsDesigner.Gui.ImageResourceEditorDialog.ProjectResourcesTreeViewAfterSelect(Object sender, TreeViewEventArgs e)

   at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)

   at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)

   at System.Windows.Forms.TreeView.WmNotify(Message& m)

   at System.Windows.Forms.TreeView.WndProc(Message& m)

   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)

 

---- Recent log messages:

15:07:16.584 [1] DEBUG - Loading assembly C:\src\HelpDeskTool\HelpDeskTool\bin\Debug\HelpDeskTool.exe (hash helpdesktool.exe635452924337887403)

15:07:16.586 [1] DEBUG - ResourceReader requested for culture: 

15:07:16.587 [1] DEBUG - ResourceReader requested for culture: 

15:07:16.587 [1] DEBUG - Forms designer: Initializing nested service container of groupBox1 [System.Windows.Forms.GroupBox], Text:  using Reflection

15:07:16.590 [1] DEBUG - Forms designer: Initializing nested service container of tbSearch [Washco.TB], Text:  using Reflection

15:07:16.594 [1] DEBUG - Forms designer: Initializing nested service container of panel1 [System.Windows.Forms.Panel], BorderStyle: System.Windows.Forms.BorderStyle.None using Reflection

15:07:16.596 [1] DEBUG - Forms designer: Initializing nested service container of lbBookmarks [System.Windows.Forms.ListBox] using Reflection

15:07:16.597 [1] DEBUG - Forms designer: Initializing nested service container of label1 [System.Windows.Forms.Label], Text:  using Reflection

15:07:16.597 [1] DEBUG - Forms designer: Initializing nested service container of btnClearBookmarks [System.Windows.Forms.Button], Text:  using Reflection

15:07:16.598 [1] DEBUG - Forms designer: Initializing nested service container of btnLiaisons [System.Windows.Forms.Button], Text:  using Reflection

15:07:16.599 [1] DEBUG - Forms designer: Initializing nested service container of btnExceptions [System.Windows.Forms.Button], Text:  using Reflection

15:07:16.600 [1] DEBUG - Forms designer: Initializing nested service container of lblOptions [System.Windows.Forms.Label], Text:  using Reflection

15:07:16.607 [1] DEBUG - Forms designer: DesignerLoader loaded, HasSucceeded=True

15:07:16.608 [1] DEBUG - FormsDesigner loaded, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface

15:07:16.609 [1] DEBUG - IDEContainer: Connecting property grid to service provider

15:07:16.618 [1] INFO - Form Designer: END INITIALIZE

15:07:20.188 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad

15:07:23.826 [59] DEBUG - Telling worker process to exit

15:07:23.826 [59] DEBUG - Waiting for thread-join

15:07:23.829 [43] DEBUG - Cannot read from WorkerProcess 5300: end of stream

15:07:23.829 [43] DEBUG - Stopped reading from WorkerProcess 5300.

15:07:23.829 [43] DEBUG - Telling worker process to exit

15:07:23.829 [43] DEBUG - End of reader thread on WorkerProcess 5300.

15:07:23.830 [59] DEBUG - Joined!

15:07:26.714 [1] ERROR - ThreadException caught

--> Exception:

System.ArgumentOutOfRangeException: Requested range extends past the end of the array.

   at System.Runtime.InteropServices.Marshal.CopyToNative(Object source, Int32 startIndex, IntPtr destination, Int32 length)

   at System.Runtime.InteropServices.Marshal.Copy(Byte[ source, Int32 startIndex, IntPtr destination, Int32 length)

   at System.Drawing.Icon.ToBitmap()

   at ICSharpCode.FormsDesigner.Gui.ImageResourceEditorDialog.SetSelectedImage(Object image, Boolean isProjectResource)

   at ICSharpCode.FormsDesigner.Gui.ImageResourceEditorDialog.UpdateOnProjectResourceSelection()

   at ICSharpCode.FormsDesigner.Gui.ImageResourceEditorDialog.ProjectResourcesTreeViewAfterSelect(Object sender, TreeViewEventArgs e)

   at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)

   at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)

   at System.Windows.Forms.TreeView.WmNotify(Message& m)

   at System.Windows.Forms.TreeView.WndProc(Message& m)

   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)

 

---- Post-error application state information:

Installed 3rd party AddIns: [GitExtensionsAddin 1.0.5283.26426], [PInvoke Add-in 0.0.0.0]

ProjectService.CurrentSolution: [Solution C:\src\HelpDeskTool\HelpDeskTool.sln with 2 projects]

ProjectService.CurrentProject: [CSharpProject: HelpDeskTool]

Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.PropertyPad


Viewing all articles
Browse latest Browse all 1764

Trending Articles