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

Zip.FastZipHandling.ReadingOfLockedDataFiles NUnit test fails...

$
0
0

I downloaded the 0.86.0 SharpZipLib source, and built the binaries against the .NET 4.0 Framework, using MSVS2010.  I also installed the .msi distribution of NUnit v2.6.1 and ran the tests in the SharpZipLibTests project.

The NUnit Zip->FastZipHandling->ReadingOfLockedDataFiles test failed with the following information:

ICSharpCode.SharpZipLib.Tests.Zip.FastZipHandling.ReadingOfLockedDataFiles:
System.IO.IOException : The process cannot access the file 'C:\Users\me\AppData\Local\Temp\a.dat' because it is being used by another process.

The StackTrace reported is:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
at ICSharpCode.SharpZipLib.Zip.FastZip.ProcessFile(Object sender, ScanEventArgs e) in C:\SDKs\SharpZipLib\SrcSamples\src\Zip\FastZip.cs:line 532
at ICSharpCode.SharpZipLib.Core.FileSystemScanner.OnProcessFile(String file) in C:\SDKs\SharpZipLib\SrcSamples\src\Core\FileSystemScanner.cs:line 410
at ICSharpCode.SharpZipLib.Core.FileSystemScanner.ScanDir(String directory, Boolean recurse) in C:\SDKs\SharpZipLib\SrcSamples\src\Core\FileSystemScanner.cs:line 496
at ICSharpCode.SharpZipLib.Core.FileSystemScanner.Scan(String directory, Boolean recurse) in C:\SDKs\SharpZipLib\SrcSamples\src\Core\FileSystemScanner.cs:line 455
at ICSharpCode.SharpZipLib.Zip.FastZip.CreateZip(Stream outputStream, String sourceDirectory, Boolean recurse, String fileFilter, String directoryFilter) in C:\SDKs\SharpZipLib\SrcSamples\src\Zip\FastZip.cs:line 394
at ICSharpCode.SharpZipLib.Tests.Zip.FastZipHandling.ReadingOfLockedDataFiles() in C:\SDKs\SharpZipLib\SrcSamples\tests\Zip\ZipTests.cs:line 2802

In SharpZipLibTests/Zip/ZipTests.cs (Line 2800), the FileAccess specified is Write and the FileShare specified is ReadWrite.  However, following the stack to the FastZip.ProcessFile method (Line 518; Line 532 listed in the StackTrace, is the end of the Catch), the FileAccess specified is Read and the FileShare specified there is only Read, not ReadWrite, which in the context of the File.Open call fails, because File.Open declares its FileShare parameter to be, "A System.IO.FileShare value specifying the type of access other threads have to the file" and with FastZipHandling.ReadingOfLockedDataFiles already writing to the file, it can't successfully open the file while guaranteeing other threads are only reading the file.

Changing the FileShare parameter to ReadWrite in FastZip.ProcessFile allows the NUnit test to succeed, though from the comments in the file I don't believe the behavior of allowing a file being processed to also be written to is really desired.  The solution seems to be to rewrite the unit test to work with a file that already exists and is being read from, with the associated File.Open call only allowing a FileShare permission of Read.  Please correct the issue.

Thank you.


bug

$
0
0

SharpDevelop Version : 4.3.0.9338-alpha-5f770be6

.NET Version         : 4.0.30319.17929

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : Chinese (Simplified, PRC) (zh-CN)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 173704kb

GC Heap Memory       : 35303kb

 

Exception thrown:

System.InvalidOperationException: All lines collapsed but visual pos different - height tree inconsistency?

   at ICSharpCode.AvalonEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, VisualLineTextParagraphProperties paragraphProperties, VisualLineElementGenerator[ elementGeneratorsArray, IVisualLineTransformer[ lineTransformersArray, Size availableSize)

   at ICSharpCode.AvalonEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize)

   at ICSharpCode.AvalonEdit.Rendering.TextView.MeasureOverride(Size availableSize)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.UIElement.UpdateLayout()

   at AvalonDock.Pane.OnItemsChanged(NotifyCollectionChangedEventArgs e)

   at AvalonDock.DocumentPane.OnItemsChanged(NotifyCollectionChangedEventArgs e)

   at System.Windows.Controls.ItemsControl.OnItemCollectionChanged2(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)

   at System.Windows.Controls.ItemCollection.OnViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)

   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)

   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)

   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)

   at MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)

   at System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)

   at AvalonDock.DockingManager.Show(DocumentContent document, Boolean floating)

   at AvalonDock.DocumentContent.Show(DockingManager manager, Boolean showAsFloatingWindow)

   at AvalonDock.DocumentContent.Show(DockingManager manager)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.ShowView(IViewContent content, Boolean switchToOpenedView)

   at ICSharpCode.SharpDevelop.Gui.WpfWorkbench.ShowView(IViewContent content, Boolean switchToOpenedView)

   at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

   at ICSharpCode.Core.FileUtility.<>c__DisplayClass14.<ObservedLoad>b__13()

   at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)

   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)

   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, FileErrorPolicy policy)

   at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName, Boolean switchToOpenedView)

   at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()

   at ICSharpCode.SharpDevelop.Project.Commands.OpenFileFromProjectBrowser.Run()

   at ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

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

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

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

   at System.Windows.Forms.ToolStripDropDown.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:

11:09:15.267 [1] DEBUG - ParseInformationUpdated E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.Common\Resources\Resources.cs new!=null:True

11:09:15.267 [1] DEBUG - ParseInformationUpdated E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.Common\Configuration\IConfiguration.cs new!=null:True

11:09:15.267 [1] DEBUG - ParseInformationUpdated E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.Common\Configuration\MutableConfiguration.cs new!=null:True

11:09:15.268 [1] DEBUG - ParseInformationUpdated E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.Common\Contracts\Assert.cs new!=null:True

11:09:15.268 [1] DEBUG - NavigationService -- resume logging

11:09:15.775 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

11:09:15.775 [1] DEBUG - ActiveWorkbenchWindowChanged to 

11:09:22.682 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad

11:09:23.526 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.ToolsPad

11:09:38.036 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

11:09:38.037 [1] INFO - CurrentProject changed to MyBatis.DataMapper

11:09:38.076 [1] INFO - Loading addin ASP.NET MVC Binding

11:09:39.573 [1] INFO - Initialize DirectoryNode E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.DataMapper

11:09:39.577 [4] DEBUG - Git: OverlayIconManager Thread started

11:09:39.578 [11] DEBUG - SVN: OverlayIconManager Thread started

11:09:39.681 [11] DEBUG - SVN: OverlayIconManager Thread finished

11:09:39.682 [4] DEBUG - Git: OverlayIconManager Thread finished

11:09:42.902 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.OpenFileFromProjectBrowser', activation=Menu

11:09:42.935 [1] INFO - Open file E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.DataMapper\DataMapper.cs

11:09:42.937 [1] INFO - Loading addin HexEditor

11:09:43.038 [1] DEBUG - Activated feature 'ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent/open.cs'

11:09:43.055 [1] INFO - Loading addin Debugger

11:09:43.056 [1] INFO - Loading addin Search & Replace

11:09:43.132 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.DataMapper\DataMapper.cs]' from key '1e13ec5:E:\技术资料\CSHARP\开源\LIBRARY\MYBATIS.NET\SRC\MYBATIS.DATAMAPPER\DATAMAPPER.CS'

11:09:43.212 [1] ERROR - ThreadException caught

--> Exception:

System.InvalidOperationException: All lines collapsed but visual pos different - height tree inconsistency?

   at ICSharpCode.AvalonEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, VisualLineTextParagraphProperties paragraphProperties, VisualLineElementGenerator[ elementGeneratorsArray, IVisualLineTransformer[ lineTransformersArray, Size availableSize)

   at ICSharpCode.AvalonEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize)

   at ICSharpCode.AvalonEdit.Rendering.TextView.MeasureOverride(Size availableSize)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.UIElement.UpdateLayout()

   at AvalonDock.Pane.OnItemsChanged(NotifyCollectionChangedEventArgs e)

   at AvalonDock.DocumentPane.OnItemsChanged(NotifyCollectionChangedEventArgs e)

   at System.Windows.Controls.ItemsControl.OnItemCollectionChanged2(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)

   at System.Windows.Controls.ItemCollection.OnViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)

   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)

   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)

   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)

   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)

   at MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)

   at System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)

   at AvalonDock.DockingManager.Show(DocumentContent document, Boolean floating)

   at AvalonDock.DocumentContent.Show(DockingManager manager, Boolean showAsFloatingWindow)

   at AvalonDock.DocumentContent.Show(DockingManager manager)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.ShowView(IViewContent content, Boolean switchToOpenedView)

   at ICSharpCode.SharpDevelop.Gui.WpfWorkbench.ShowView(IViewContent content, Boolean switchToOpenedView)

   at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

   at ICSharpCode.Core.FileUtility.<>c__DisplayClass14.<ObservedLoad>b__13()

   at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)

   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)

   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, FileErrorPolicy policy)

   at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName, Boolean switchToOpenedView)

   at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()

   at ICSharpCode.SharpDevelop.Project.Commands.OpenFileFromProjectBrowser.Run()

   at ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

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

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

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

   at System.Windows.Forms.ToolStripDropDown.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: [WebRunner 1.0]

Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

ProjectService.OpenSolution: [Solution: FileName=E:\技术资料\Csharp\开源\Library\Mybatis.net\src\MyBatis.sln, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [CSharpProject: MyBatis.DataMapper]

Custom debugger conflicts with ConsolePad

$
0
0

We're building an addin with a custom debugger (which works fine).

Now the problem is that the built-in debugger UI (ConsolePad in particular) assumes that the current debugger is always a WindowsDebugger. This is not the case for us and therefore the constructor of ConsolePad throws an exception because it contains a hard cast to Windows debugger.

 

What can I do to replace the built-in debugger pads to support our own debugger?

Or better, any chance the built-in pads can be fixed to support non-WindowsDebugger instances.

PS. We're currently on SD5, but 4.3 is also an option.

 

Embed DLL in EXE

$
0
0

Hello All,

Is it possible to embed a dll in a project? I have a third-party dll with royalty-free distributional rights, the question is, is it possible to embed it in the project or do I have to distribute it separately.

Unhandled exception

$
0
0

SharpDevelop Version : 4.3.1.9430-406354be
.NET Version : 4.0.30319.296
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : Russian (Russia) (ru-RU)
Current UI language : en
Working Set Memory : 438404kb
GC Heap Memory : 246764kb

Exception thrown:
System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)
at Debugger.Interop.CorDebug.ICorDebugProcess.__Continue(Int32 fIsOutOfBand)
at Debugger.Process.AsyncContinue(DebuggeeStateAction action, Thread[ threadsToRun, Nullable`1 newThreadState)
at Debugger.ManagedCallback.ExitCallback()
at Debugger.ManagedCallbackSwitch.LoadAssembly(ICorDebugAppDomain pAppDomain, ICorDebugAssembly pAssembly)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass19.<LoadAssembly>b__18()
at Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

---- Recent log messages:
16:51:52.414 [1] INFO - Loading layout file: C:\Program Files\SharpDevelop\4.3\bin\..\data\layouts\Debug.xml, hideAllLostPads=False
16:51:52.491 [1] DEBUG - ActiveContentChanged to
16:51:52.512 [1] DEBUG - ActiveWorkbenchWindowChanged to
16:51:52.512 [1] DEBUG - ActiveViewContentChanged to
16:51:52.515 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.ErrorListPad
16:51:52.516 [1] DEBUG - ActiveContentChanged to
16:51:52.629 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\ReDoX\Documents\SharpDevelop\Projects\Чит\Чит\Simple_2\Simple_5_2.cs]
16:51:52.630 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Simple_5_2.cs]
16:51:52.630 [1] DEBUG - NavigationService
ActiveViewContent: Simple_5_2.cs
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
16:51:52.630 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\ReDoX\Documents\SharpDevelop\Projects\Чит\Чит\Simple_2\Simple_5_2.cs]
16:51:52.630 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.ClassBrowser.ClassBrowserPad...
16:51:52.970 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad...
16:51:53.291 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
16:51:53.291 [1] DEBUG - ChooseLayoutCommand.Run()
16:51:53.291 [1] INFO - Saving layout file: C:\Users\ReDoX\AppData\Roaming\ICSharpCode/SharpDevelop4\layouts\Debug.xml
16:51:53.295 [1] DEBUG - Activated feature 'Debugger'
16:51:53.329 [1] DEBUG - Debugger: Debuggee version: v4.0.30319
16:51:53.329 [1] DEBUG - Debugger: Debugger interface version: v4.0
16:51:53.501 [1] DEBUG - Debugger: ICorDebug initialized
16:51:53.502 [1] DEBUG - Debugger: Executing C:\Users\ReDoX\Documents\SharpDevelop\Projects\Чит\Чит\bin\Release\Чит.exe
16:51:54.942 [1] DEBUG - Debugger: Callback: CreateProcess
16:51:54.967 [1] DEBUG - Debugger: Callback: CreateAppDomain
16:51:55.375 [1] DEBUG - Debugger: Callback: NameChange: pAppDomain
16:51:55.455 [1] DEBUG - Debugger: Callback: LoadAssembly
16:51:55.848 [1] ERROR - ThreadException caught
--> Exception:
System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)
at Debugger.Interop.CorDebug.ICorDebugProcess.__Continue(Int32 fIsOutOfBand)
at Debugger.Process.AsyncContinue(DebuggeeStateAction action, Thread[ threadsToRun, Nullable`1 newThreadState)
at Debugger.ManagedCallback.ExitCallback()
at Debugger.ManagedCallbackSwitch.LoadAssembly(ICorDebugAppDomain pAppDomain, ICorDebugAssembly pAssembly)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass19.<LoadAssembly>b__18()
at Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\ReDoX\Documents\SharpDevelop\Projects\Чит\Чит\Simple_2\Simple_5_2.cs]
ProjectService.OpenSolution: [Solution: FileName=C:\Users\ReDoX\Documents\SharpDevelop\Projects\Чит\Чит.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: Чит]

Stopwatch

Group report - error.

$
0
0

I apologize for my English. Help me please.

I want to create a group report into SharpDevelop. Opt for the "Report Model" ="Push Data". Under "Report layout" turn on"Grouping" and choose the desired field. When viewed in SharpDevelop it is well displayed. When you run the program get the error "Type GroupColumn could not be instantiated: No parameterless constructor defined for this object."

Program code:

private void RunMyReport (string reportName, DataTable dt)
        {        
            ReportModel rm = ReportEngine.LoadReportModel(reportName);
            ReportParameters rp = new ReportParameters();            
            this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
            {
                this. RunMyReport (reportName, dt);
            };
            this.previewControl1.RunReport(rm, dt, rp);
        }

Windows SDK Path Under HKCU Keys And/Or in the settings.

$
0
0

I don't know if this is in Sharp Develop or the .net framework.  I use the portable version of SharpDevelop on a computer where I have no admin access.  I downloaded the Windows SDK from another computer and have copied it with the portable version.  I'd like a way to make this recognized by Sharp Develop without admin access.


starting in reports

$
0
0

as I can call a report through a button on a form

greetings from chile

Pain and gain

$
0
0

The a lot of important acclaim will be to Tony adamowicz Shalom adventuresome with commendations to adventuresome in the basal kidnapped target, Victor Hawker (name activate themselves currently accepting added to bouncer the key accepting in the victim.His or her activate is in adeptness tortured, befuddled alternating with affiliated to some abode which usually you will blubbering alternating with accepting a abasement activity able for your bristling accent at the aloft time. While it is a lot of in achievement air-conditioned to in achievement affliction with the three beef men, the victims adeptness dont attraction a able lot of altruism either. Shallow is a even son of a accusation that is loaded in money and is about unlikeable on every level. If Lego and his accession of hoods beat to force the mulch-millionaire to accordance up his home and all his money, you about abject for these barbate schleps afresh again, maybe not. PAIN AND GAIN is able to acclimatize this adventitious with its argot breathing durably in adventurousness loaded with gallows activity that accumulate you entertained. Watch Pain and Gain Online While not abominably violent, there are in achievement a few blood-soaked and advancing images as the assay arrangement added and added into their complete alarming plan. The added they accomplish, the added they acceptance to crop and the beneath affectionate they become.If the filmmakers had able out to him, Writer said, he could accepting provided baby columnist realness.A apostle for Preponderant said Schiller was offered an achievability to see the celebration and he beneath to do so.

 



Watch pain and Gain Online  | Watch The Reluctant Fundamentalist Online  | Watch At Any Price Online Free

Exception thrown ...

$
0
0

SharpDevelop Version : 4.3.1.9430-406354be

.NET Version         : 4.0.30319.296

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : German (Germany) (de-DE)

Current UI language  : en

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 82772kb

GC Heap Memory       : 7210kb

 

Exception thrown:

System.InvalidOperationException: Layout file hasn't a valid structure!

   at AvalonDock.DockingManager.RestoreLayout(XmlDocument doc)

   at AvalonDock.DockingManager.RestoreLayout(String filename)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadLayout(String fileName, Boolean hideAllLostPads)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.TryLoadConfiguration()

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()

 

---- Recent log messages:

23:07:53.319 [1] DEBUG - Add pad ICSharpCode.SharpDevelop.Gui.Pads.WatchPad at Bottom, Hidden

23:07:53.319 [1] DEBUG - Add pad ICSharpCode.SharpDevelop.Gui.Pads.ObjectGraphPad at Bottom, Hidden

23:07:53.320 [1] DEBUG - Add pad ICSharpCode.SharpDevelop.Gui.Pads.ParallelStackPad at Bottom, Hidden

23:07:53.320 [1] DEBUG - Add pad ICSharpCode.Data.Addin.Pad.DatabasesTreeViewPad at Right, Hidden

23:07:53.320 [1] DEBUG - Add pad ICSharpCode.XmlEditor.XPathQueryPad at Bottom, Hidden

23:07:53.321 [1] DEBUG - Add pad MSHelpSystem.Controls.Help3TocPad at Right, Hidden

23:07:53.321 [1] DEBUG - Add pad MSHelpSystem.Controls.Help3SearchPad at Right, Hidden

23:07:53.322 [1] DEBUG - Add pad ICSharpCode.PackageManagement.Scripting.PackageManagementConsolePad at Bottom, Hidden

23:07:53.322 [1] DEBUG - Add pad ICSharpCode.Reports.Addin.ReportExplorerPad at Right, Hidden

23:07:53.323 [1] INFO - Starting workbench...

23:07:53.323 [1] DEBUG - NavigationService -- suspend logging

23:07:53.323 [1] INFO - Loading addin Start Page

23:07:53.344 [1] INFO - Loading addin Usage Data Collector

23:07:53.392 [5] DEBUG - RecentProjectsControl: Looking up path 'C:\Users\Daniel\Projects\git\YetAnotherCommandLineParserLibrary\YetAnotherCommandLineParserLibrarySolution.sln'

23:07:53.394 [1] DEBUG - ActiveContentChanged to ICSharpCode.StartPage.StartPageViewContent

23:07:53.394 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Start Page]

23:07:53.394 [1] DEBUG - NavigationService

ActiveViewContent: Start Page

         Subview: TabPageText

23:07:53.394 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.StartPage.StartPageViewContent

23:07:53.395 [1] DEBUG - NavigationService -- resume logging

23:07:53.537 [1] INFO - Number of screens: 2

23:07:53.537 [1] INFO - Screen {X=0,Y=0,Width=1920,Height=1080}: Validating {X=10,Y=10,Width=1445,Height=911}; intersection {X=10,Y=10,Width=1445,Height=911}

23:07:53.580 [1] INFO - dockingManager_Loaded

23:07:53.581 [1] INFO - Loading layout file: C:\Users\Daniel\AppData\Roaming\ICSharpCode/SharpDevelop4\layouts\Default.xml, hideAllLostPads=False

23:07:53.584 [1] ERROR - 

--> Exception:

System.InvalidOperationException: Layout file hasn't a valid structure!

   at AvalonDock.DockingManager.RestoreLayout(XmlDocument doc)

   at AvalonDock.DockingManager.RestoreLayout(String filename)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadLayout(String fileName, Boolean hideAllLostPads)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.TryLoadConfiguration()

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()

23:07:53.742 [1] WARN - Stack trace of last exception log:

   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at ICSharpCode.Core.MessageService.ShowException(Exception ex, String message)

   at ICSharpCode.Core.MessageService.ShowException(Exception ex)

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()

   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.dockingManager_Loaded(Object sender, RoutedEventArgs e)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)

   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)

   at MS.Internal.LoadedOrUnloadedOperation.DoWork()

   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()

   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)

   at System.Windows.Interop.HwndTarget.OnResize()

   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)

   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)

   at System.Windows.Window.ShowHelper(Object booleanBox)

   at System.Windows.Window.Show()

   at System.Windows.Application.<RunInternal>b__f(Object obj)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.DispatcherOperation.InvokeImpl()

   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Threading.DispatcherOperation.Invoke()

   at System.Windows.Threading.Dispatcher.ProcessQueue()

   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   at System.Windows.Application.RunDispatcher(Object ignore)

   at System.Windows.Application.RunInternal(Window window)

   at System.Windows.Application.Run(Window window)

   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)

   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)

   at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)

   at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()

   at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()

   at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)

 

---- Post-error application state information:

Installed 3rd party AddIns: 

Workbench.ActiveContent: ICSharpCode.StartPage.StartPageViewContent

ProjectService.OpenSolution: <null>

ProjectService.CurrentProject: <null>

Does any one know about this error: “Wrong Local header signature: 0x6D74683C”?

$
0
0

The question is also posted at stackoverflow:http://stackoverflow.com/questions/16253543/does-any-one-know-about-this-error-wrong-local-header-signature-0x6d74683c

----------------------------------------------------------------------------------------------------

The following code is used to download a zip file and unzip it on phone.

The same code used to work on WP7, I started tested on WP8 device, and strange thing is happening... now it works on WP8 but NOT on WP7 anymore.

On the WP7 it gives an ERROR:

WrongLocal header signature:0x6D74683C

Could someone tell me what's wrong here?

using ICSharpCode.SharpZipLib.Zip;
using System;
using System.Diagnostics;
using System.IO;
using System.IO.IsolatedStorage;
using System.Net;

namespace iq_main.Network{publicclass IQ_Download{privatestring zipFilePassword =String.Empty;privatestring fileNameToBeStoredAs =String.Empty;privatestring urlToBeDownloaded =String.Empty;privateHttpWebResponse response;publicvoidDownload(string _urlToBeDownloaded =GlobalConstants.DownloadLanguageConfigurationUrl,string _fileNameToBeStoredAs =GlobalConstants.DownloadLanguageConfigurationXmlFilename,string _zipFilePassword =GlobalConstants.DownloadZipsPassword){

            urlToBeDownloaded = _urlToBeDownloaded;
            fileNameToBeStoredAs = _fileNameToBeStoredAs;
            zipFilePassword = _zipFilePassword;System.Uri targetUri =newSystem.Uri(urlToBeDownloaded);HttpWebRequest request =(HttpWebRequest)HttpWebRequest.Create(targetUri);

            request.BeginGetResponse(newAsyncCallback(WebRequestCallBack), request);}voidWebRequestCallBack(IAsyncResult result){HttpWebRequest resultInfo =(HttpWebRequest)result.AsyncState;
            response =(HttpWebResponse)resultInfo.EndGetResponse(result);try{

                using (StreamReader httpwebStreamReader =newStreamReader(response.GetResponseStream())){//open isolated storage to save files
                    using (IsolatedStorageFile isoStore =IsolatedStorageFile.GetUserStoreForApplication()){
                        using (ZipInputStream s =newZipInputStream(httpwebStreamReader.BaseStream)){if(zipFilePassword !=String.Empty)
                                s.Password= zipFilePassword;//if archive is encryptedZipEntry theEntry;try{//EXCEPTION OCCURS ON THE VERY NEXT LINE (while...)    while((theEntry = s.GetNextEntry())!=null){string directoryName =Path.GetDirectoryName(theEntry.Name);string fileName =Path.GetFileName(theEntry.Name);
                                    fileName = fileNameToBeStoredAs;// create directoryif(directoryName.Length>0){
                                        isoStore.CreateDirectory(directoryName);//Directory.CreateDirectory(directoryName);}if(fileName !=String.Empty){//save file to isolated storage
                                        using (BinaryWriter streamWriter =newBinaryWriter(newIsolatedStorageFileStream(theEntry.Name,FileMode.Create,FileAccess.Write,FileShare.Write, isoStore))){int size =2048;byte[ data =newbyte[2048];while(true){
                                                size = s.Read(data,0, data.Length);if(size >0)
                                                    streamWriter.Write(data,0, size);elsebreak;}}}}}catch(ZipException ze){Debug.WriteLine(ze.Message);}}}}}//trycatch(Exception ex){Debug.WriteLine(ex.Message);}}//WebRequestCallBack Method */}//Class ends}

THE OUTPUT STACK

'TaskHost.exe'(Managed):Loaded'\Applications\Install\2886244C-2244-44C3-BD94-809442B9CDEF\Install\URKeyboard.dll',Symbols loaded.'TaskHost.exe'(Managed):Loaded'\Applications\Install\2886244C-2244-44C3-BD94-809442B9CDEF\Install\WP7DockPanel.dll''TaskHost.exe'(Managed):Loaded'\Applications\Install\2886244C-2244-44C3-BD94-809442B9CDEF\Install\System.Threading.Tasks.dll''TaskHost.exe'(Managed):Loaded'\Applications\Install\2886244C-2244-44C3-BD94-809442B9CDEF\Install\Microsoft.Threading.Tasks.dll' A first chance exception of type 'System.MethodAccessException' occurred in mscorlib.dll'TaskHost.exe'(Managed):Loaded'\Applications\Install\2886244C-2244-44C3-BD94-809442B9CDEF\Install\Microsoft.Threading.Tasks.Extensions.Phone.dll' A first chance exception of type 'System.MethodAccessException' occurred in mscorlib.dll'TaskHost.exe'(Managed):Loaded'System.Runtime.Serialization.dll''TaskHost.exe'(Managed):Loaded'System.SR.dll' A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.dll A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.dll'TaskHost.exe'(Managed):Loaded'\Applications\Install\2886244C-2244-44C3-BD94-809442B9CDEF\Install\SharpZipLib.WindowsPhone7.dll'Stepinto:Stepping over method without symbols 'string.operator !='Stepinto:Stepping over method without symbols 'ICSharpCode.SharpZipLib.Zip.ZipInputStream.Password.set'Stepinto:Stepping over method without symbols 'string.operator !='Stepinto:Stepping over method without symbols 'ICSharpCode.SharpZipLib.Zip.ZipInputStream.Password.set'Stepinto:Stepping over method without symbols 'ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry' A first chance exception of type 'ICSharpCode.SharpZipLib.Zip.ZipException' occurred inSharpZipLib.WindowsPhone7.dllStepinto:Stepping over method without symbols 'System.Exception.Message.get'Stepinto:Stepping over method without symbols 'System.Diagnostics.Debug.WriteLine'WrongLocal header signature:0x6D74683C A first chance exception of type 'ICSharpCode.SharpZipLib.Zip.ZipException' occurred inSharpZipLib.WindowsPhone7.dllWrongLocal header signature:0x6D74683C


 

 

Learn videos for database programming

$
0
0

Hi ppl,

I've recently found yhis liitle/big gem called SharpDevelop :)
I was tired of installing/repairing all the bloated package called visual studio 2010 :(
when ms put vs 2012 out, not supporting windows xp/2003... :(
that was the final naill in the couffin. ;)

I've been trying to find good database programming tutorials in SharpDevelop,

found some but (goole(ing), youtube(ing)..).. not very useful...

I wonder if anybody knows good learning material and put some links here...

If possible comparison between types/methods of acessing database,
from direct access with dataset/datatable until entity framework (modeling, code first, etc.)

Thx

 

Exception thrown: System.Configuration.ConfigurationErrorsException: Error al crear el proxy Web especificado en la sección de configuración 'system.net/defaultProxy'. ---> System.BadImageFormatException: Se ha intentado cargar un programa con

$
0
0

 Hola !  mucho gusto ! soy nuevo y necesito ayuda urgente: S.O Win8 :( 
SharpDevelop Version : 4.2.1.8805-9345aa7c

.NET Version         : 4.0.30319.18033

OS Version           : Microsoft Windows NT 6.2.9200.0

Current culture      : Spanish (Spain, International Sort) (es-ES)

Working Set Memory   : 44452kb

GC Heap Memory       : 5375kb

 

Unhandled exception

Exception thrown:

System.Configuration.ConfigurationErrorsException: Error al crear el proxy Web especificado en la sección de configuración 'system.net/defaultProxy'. ---> System.BadImageFormatException: Se ha intentado cargar un programa con un formato incorrecto. (Excepción de HRESULT: 0x8007000B)

   en System.Net.UnsafeNclNativeMethods.RasHelper.RasEnumConnections(RASCONN[ lprasconn, UInt32& lpcb, UInt32& lpcConnections)

   en System.Net.UnsafeNclNativeMethods.RasHelper.GetCurrentConnectoid()

   en System.Net.AutoWebProxyScriptEngine.AutoDetector.Initialize()

   en System.Net.AutoWebProxyScriptEngine.AutoDetector.get_CurrentAutoDetector()

   en System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry)

   en System.Net.WebProxy.UnsafeUpdateFromRegistry()

   en System.Net.WebProxy..ctor(Boolean enableAutoproxy)

   en System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section)

   en System.Net.Configuration.DefaultProxySectionInternal.GetSection()

   --- Fin del seguimiento de la pila de la excepción interna ---

 

Server stack trace: 

   en System.Net.Configuration.DefaultProxySectionInternal.GetSection()

   en System.Net.WebRequest.get_InternalDefaultWebProxy()

   en System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)

   en System.Net.HttpRequestCreator.Create(Uri Uri)

   en System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)

   en System.Net.WebRequest.Create(Uri requestUri)

   en System.ServiceModel.Channels.HttpChannelFactory`1.GetWebRequest(EndpointAddress to, Uri via, NetworkCredential credential, TokenImpersonationLevel impersonationLevel, AuthenticationLevel authenticationLevel, SecurityTokenProviderContainer proxyTokenProvider, SecurityTokenContainer clientCertificateToken, TimeSpan timeout, Boolean isWebSocketRequest)

   en System.ServiceModel.Channels.HttpChannelFactory`1.GetWebRequest(EndpointAddress to, Uri via, SecurityTokenProviderContainer tokenProvider, SecurityTokenProviderContainer proxyTokenProvider, SecurityTokenContainer clientCertificateToken, TimeSpan timeout, Boolean isWebSocketRequest)

   en System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.GetWebRequest(EndpointAddress to, Uri via, SecurityTokenContainer clientCertificateToken, TimeoutHelper& timeoutHelper)

   en System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.GetWebRequest(EndpointAddress to, Uri via, TimeoutHelper& timeoutHelper)

   en System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelAsyncRequest.BeginSendRequest(Message message, TimeSpan timeout)

   en System.ServiceModel.Channels.RequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, Object state)

   en System.ServiceModel.Dispatcher.RequestChannelBinder.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, Object state)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult result, Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult result, Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()

   en System.ServiceModel.Channels.ServiceChannel.BeginCall(String action, Boolean oneway, ProxyOperationRuntime operation, Object[ ins, TimeSpan timeout, AsyncCallback callback, Object asyncState)

   en System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

   en System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

 

Exception rethrown at [0]: 

   en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   en ICSharpCode.UsageDataCollector.ServiceReference.IUDCUploadService.BeginUploadUsageData(UDCUploadRequest request, AsyncCallback callback, Object asyncState)

   en ICSharpCode.UsageDataCollector.ServiceReference.UDCUploadServiceClient.ICSharpCode.UsageDataCollector.ServiceReference.IUDCUploadService.BeginUploadUsageData(UDCUploadRequest request, AsyncCallback callback, Object asyncState)

   en ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(Binding binding, EndpointAddress endpoint)

   en ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(String uploadUrl)

   en ICSharpCode.UsageDataCollector.AnalyticsMonitor.<>c__DisplayClassa.<OpenSession>b__6(Object param0)

   en System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   en System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   en System.Threading.ThreadPoolWorkQueue.Dispatch()

   en System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

---- Recent log messages:

20:09:34.925 [1] INFO - InitSharpDevelop...

20:09:35.124 [1] INFO - Looking for AddIns...

20:09:35.149 [1] INFO - Loading AddInTree...

20:09:35.204 [1] INFO - Running autostart commands...

20:09:35.205 [1] INFO - Loading addin Usage Data Collector

20:09:35.208 [1] INFO - Loading addin GitAddIn

20:09:35.210 [1] INFO - Loading addin Subversion AddIn

20:09:35.795 [1] INFO - InitSharpDevelop finished

20:09:35.796 [1] INFO - Initializing workbench...

20:09:36.045 [5] FATAL - UnhandledException caught

--> Exception:

System.Configuration.ConfigurationErrorsException: Error al crear el proxy Web especificado en la sección de configuración 'system.net/defaultProxy'. ---> System.BadImageFormatException: Se ha intentado cargar un programa con un formato incorrecto. (Excepción de HRESULT: 0x8007000B)

   en System.Net.UnsafeNclNativeMethods.RasHelper.RasEnumConnections(RASCONN[ lprasconn, UInt32& lpcb, UInt32& lpcConnections)

   en System.Net.UnsafeNclNativeMethods.RasHelper.GetCurrentConnectoid()

   en System.Net.AutoWebProxyScriptEngine.AutoDetector.Initialize()

   en System.Net.AutoWebProxyScriptEngine.AutoDetector.get_CurrentAutoDetector()

   en System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry)

   en System.Net.WebProxy.UnsafeUpdateFromRegistry()

   en System.Net.WebProxy..ctor(Boolean enableAutoproxy)

   en System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section)

   en System.Net.Configuration.DefaultProxySectionInternal.GetSection()

   --- Fin del seguimiento de la pila de la excepción interna ---

 

Server stack trace: 

   en System.Net.Configuration.DefaultProxySectionInternal.GetSection()

   en System.Net.WebRequest.get_InternalDefaultWebProxy()

   en System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)

   en System.Net.HttpRequestCreator.Create(Uri Uri)

   en System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)

   en System.Net.WebRequest.Create(Uri requestUri)

   en System.ServiceModel.Channels.HttpChannelFactory`1.GetWebRequest(EndpointAddress to, Uri via, NetworkCredential credential, TokenImpersonationLevel impersonationLevel, AuthenticationLevel authenticationLevel, SecurityTokenProviderContainer proxyTokenProvider, SecurityTokenContainer clientCertificateToken, TimeSpan timeout, Boolean isWebSocketRequest)

   en System.ServiceModel.Channels.HttpChannelFactory`1.GetWebRequest(EndpointAddress to, Uri via, SecurityTokenProviderContainer tokenProvider, SecurityTokenProviderContainer proxyTokenProvider, SecurityTokenContainer clientCertificateToken, TimeSpan timeout, Boolean isWebSocketRequest)

   en System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.GetWebRequest(EndpointAddress to, Uri via, SecurityTokenContainer clientCertificateToken, TimeoutHelper& timeoutHelper)

   en System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.GetWebRequest(EndpointAddress to, Uri via, TimeoutHelper& timeoutHelper)

   en System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelAsyncRequest.BeginSendRequest(Message message, TimeSpan timeout)

   en System.ServiceModel.Channels.RequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, Object state)

   en System.ServiceModel.Dispatcher.RequestChannelBinder.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, Object state)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult result, Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult result, Boolean completedSynchronously)

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()

   en System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()

   en System.ServiceModel.Channels.ServiceChannel.BeginCall(String action, Boolean oneway, ProxyOperationRuntime operation, Object[ ins, TimeSpan timeout, AsyncCallback callback, Object asyncState)

   en System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

   en System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

 

Exception rethrown at [0]: 

   en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   en ICSharpCode.UsageDataCollector.ServiceReference.IUDCUploadService.BeginUploadUsageData(UDCUploadRequest request, AsyncCallback callback, Object asyncState)

   en ICSharpCode.UsageDataCollector.ServiceReference.UDCUploadServiceClient.ICSharpCode.UsageDataCollector.ServiceReference.IUDCUploadService.BeginUploadUsageData(UDCUploadRequest request, AsyncCallback callback, Object asyncState)

   en ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(Binding binding, EndpointAddress endpoint)

   en ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(String uploadUrl)

   en ICSharpCode.UsageDataCollector.AnalyticsMonitor.<>c__DisplayClassa.<OpenSession>b__6(Object param0)

   en System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   en System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   en System.Threading.ThreadPoolWorkQueue.Dispatch()

   en System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

20:09:36.047 [5] FATAL - Runtime is terminating because of unhandled exception.

20:09:36.170 [1] INFO - Loading addin SharpDevelop

 

---- Post-error application state information:

Installed 3rd party AddIns: 

SharpDevelop 5.0.0.2100 tech preview not working on Windows XP/2003

$
0
0

Hi ppl...

I've extracted the .msi file to a folder and created a shortcut to .exe

When it is launched it gaves me the error "SharpDevelop.exe is not a valid Win32 Application"

?what can be the problem, I've verified the .exe and it is  a Win32 executable

the version is 5.0.0.2100-newNR-alpha-edbdd876

thx

 


Help functions not working

$
0
0

I don't know why but I can nearly never use the help functions like F1 on a keyword or right click "Show Help" on a compiler error.

It simply happens nothing when I do that, the weird thing is that when I compiled SharpDevelop 4.3.1 9430 it worked. Then when I built it as a release and placed it next to my current version it stopped working again.

I have also no idea about the summary what makes it work for me because it barely works at all, but I think it's not project based as the one where I tested the debug built of 4.3.1 it stopped working with the release built.

So if anyone has any ideas how I can help trying to track down what it might be I'd be glad to try to help cause this isn't a new bug me, I already had that problem with v3 longer times ago, but back then I just didn't bother with it, but now it bothers me.

I can open the Sharpdevelop help by clicking on Help -> Help Topics but when I press F1, click Help -> Context Help or Show Help on a compiler error nothing happens.

I hoped the debug version would shed some light on it but well, there it simply worked...

SharpDevelop Version : 4.3.0.9390-e0365b10
.NET Version         : 4.0.30319.17929
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1 (Win7 HomePremium 64)
Current culture      : German (Germany) (de-DE)
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 188028kb
GC Heap Memory       : 45108kb

Edit: complaining helps, now it broke in the debug version. So anyone can point me to where I have to set a breakpoint to take a look what might go wrong?

Exception

$
0
0

SharpDevelop Version : 4.3.1.9430-406354be
.NET Version         : 4.0.30319.296
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : Italian (Italy) (it-IT)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 531532kb
GC Heap Memory       : 178220kb

Unhandled WPF exception
Exception thrown:
System.InvalidCastException: Impossibile eseguire il cast di oggetti di tipo 'ServiceCollection`1[System.Object]' sul tipo 'System.Collections.Hashtable'.
   in DevExpress.Utils.Design.DesignerLicenseHelper.OnDesignSurfaceDisposed(Object sender, EventArgs e)
   in System.EventHandler.Invoke(Object sender, EventArgs e)
   in System.ComponentModel.Design.DesignSurface.Dispose(Boolean disposing)
   in ICSharpCode.FormsDesigner.FormsDesignerViewContent.UnloadDesigner()
   in ICSharpCode.FormsDesigner.FormsDesignerViewContent.Dispose()
   in ICSharpCode.SharpDevelop.Gui.AvalonWorkbenchWindow.<Dispose>b__b(IViewContent vc)
   in System.Collections.Generic.List`1.ForEach(Action`1 action)
   in ICSharpCode.SharpDevelop.Gui.AvalonWorkbenchWindow.Dispose()
   in ICSharpCode.SharpDevelop.Gui.AvalonWorkbenchWindow.OnClosed()
   in AvalonDock.DocumentContent.Close()
   in AvalonDock.ManagedContent.OnExecuteCommand(Object sender, ExecutedRoutedEventArgs e)
   in System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   in System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   in System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   in System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   in System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   in System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
   in System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
   in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   in System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   in System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   in System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   in System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
   in MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   in System.Windows.Controls.Primitives.ButtonBase.OnClick()
   in System.Windows.Controls.Button.OnClick()
   in System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   in System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   in System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   in System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   in System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   in System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   in System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   in System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   in System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   in System.Windows.Input.InputManager.ProcessStagingArea()
   in System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   in System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   in System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   in System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   in System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   in MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   in MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   in MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
10:20:49.442 [1] DEBUG - Forms designer: DesignerLoader loaded, HasSucceeded=True
10:20:49.443 [1] DEBUG - FormsDesigner loaded, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface
10:20:49.486 [1] INFO - Form Designer: END INITIALIZE
10:20:49.486 [1] DEBUG - FormsDesigner view content activated, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface
10:20:49.487 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent
10:20:49.487 [1] DEBUG - IDEContainer: Connecting property grid to service provider
10:20:49.542 [1] DEBUG - ParseInformationUpdated D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs new!=null:True
10:20:52.845 [1] DEBUG - NavigationService
    ActiveViewContent: FrmSelezionaServerDB.cs
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
10:20:52.846 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs]
10:20:52.847 [1] DEBUG - Forms designer: Save D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs
10:20:52.854 [1] DEBUG - FormsDesigner view content deactivated, setting ActiveDesignSurface to null
10:20:52.855 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs]
10:20:52.855 [1] DEBUG - IDEContainer: Disconnecting property grid from service provider
10:20:53.371 [1] DEBUG - Removing part D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs from compound class Samatech.Fatturazione.FrmSelezionaServerDB
10:20:53.371 [1] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
10:20:53.371 [1] DEBUG - Adding existing class FrmSelezionaServerDB from FrmSelezionaServerDB.cs
10:20:53.371 [1] DEBUG - Creating compound for Samatech.Fatturazione.FrmSelezionaServerDB
10:20:53.372 [1] DEBUG - ParseInformationUpdated D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs new!=null:True
10:20:55.022 [1] DEBUG - Saving memento of '[AvalonEditViewContent D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs]' to key '1e13ec5:D:\SVILUPPO\SAMAFATT 2006\SAMAFATT 3.4.0.9\FRMSELEZIONASERVERDB.CS'
10:20:55.043 [1] DEBUG - ActiveContentChanged to
10:20:55.053 [1] DEBUG - ActiveViewContentChanged to
10:20:55.057 [1] DEBUG - OpenedFileClosed: D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.cs
10:20:55.057 [1] DEBUG - OpenedFileClosed: D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.designer.cs
10:20:55.057 [1] DEBUG - OpenedFileClosed: D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\FrmSelezionaServerDB.resx
10:20:55.057 [1] DEBUG - FormsDesigner unloading, setting ActiveDesignSurface to null

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: <null>
ProjectService.OpenSolution: [Solution: FileName=D:\Sviluppo\SamaFatt 2006\SamaFatt 3.4.0.9\SamaFatt.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: SamaFatt]

Debugging inside anonymous methods

$
0
0

I can't get SharpDevelop(v4.3.0) to stop at breakpoints or step into anonymous methods -- like methods defined via lambda expressions. I couldn't find any info on the subject, nor any similar complaints, so am I missing something? Is that a bug? Simply not implemented?

Program a MIDI aplication in ShapDevelop for XP

$
0
0

Hi All.

I would like to program a very simple application for MIDI keyboard.

Is it possible using SharpDevelop?

is there any sample/tutorial that I could use as a base?

thanks in advance

kamaron

Is ILSpy dead?

$
0
0

So the github respository has had absolutely no activity for the past 6 months, and pull requests and tickets are piling up. The last tweet from @ilspy is from the 8th of june last year, the only recent activity from any of the ILSpy team members is from Daniel Grunwald on this very forum.

So what is the current status of the project? Is it in need of new maintainers? Are the team members working on a major rewrite using some cathedral like model?

Viewing all 1764 articles
Browse latest View live