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

Sharpdevelop 5

$
0
0

Hi guys

I have a question, why only c# support in Sharpdevelop 5?

Thanks and sorry for bad English

Marco

 


Create new Zip file from existing zip, getting error

$
0
0

Hello

I am working on Creating a new zip file from existing zip file. I am using SharpZipLib version 0.86.0.518

I need to encrypt and set password to the new zip file.

I reviewed previous user forums and created a small console application. During testing we are getting the following error.

Exception message: {"size was 0, but I expected 656"}

Stack Trace:

   at ICSharpCode.SharpZipLib.Zip.ZipOutputStream.CloseEntry()
   at ConsoleApplication1.Class1.DoRebuildFile(String pArchivePath) in c:\Delete\Console\ConsoleApplication1\Class1.cs:line 39
   at ConsoleApplication1.Class1.test() in c:\Delete\Console\ConsoleApplication1\Class1.cs:line 23
   at ConsoleApplication1.Program.Main(String[ args) in c:\Delete\Console\ConsoleApplication1\Program.cs:line 15
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[ args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 

Source code:

this.DoRebuildFile();

        public void DoRebuildFile()
        {
            using (ZipInputStream zip = new ZipInputStream(File.OpenRead("c:\\delete\\Inbound\\20160104.zip")))
            {
                ZipEntry entry;
                using (ZipOutputStream zipOutputStream = new ZipOutputStream(File.Create("c:\\delete\\Archive\\20160104.zip")))
                {
                   // zipOutputStream.Password = "test123";

                    while ((entry = zip.GetNextEntry()) != null)
                    {
                        zipOutputStream.PutNextEntry(this.CloneZipEntry(entry));
                        zipOutputStream.CloseEntry();
                    }
                }
            }
        }

        private ZipEntry CloneZipEntry(ZipEntry curEntry)
        {
            ZipEntry newEntry = new ZipEntry(curEntry.Name);
            //newEntry.AESKeySize = 256;
            newEntry.DosTime = curEntry.DosTime;
            newEntry.CompressionMethod = curEntry.CompressionMethod;
            newEntry.Comment = curEntry.Comment;
            newEntry.Size = curEntry.Size;
            //newEntry.ExternalFileAttributes = curEntry.ExternalFileAttributes;
            newEntry.Flags = curEntry.Flags;
            if (curEntry.ExtraData != null)
            {
                newEntry.ExtraData = new byte[curEntry.ExtraData.Length];
                Array.Copy(curEntry.ExtraData, 0, newEntry.ExtraData, 0, curEntry.ExtraData.Length);
            }
            return newEntry;
        }

I appreciate your great help. Thanks.

migrate to visual studio

$
0
0

I use sharpdevelop to develop in VB:net, and i have a bugs, and i need to migrate to visual studio, but when i save thje project in visual studio i have the next error in each function and sub, "Error4Handles clause requires a WithEvents variable defined in the containing type or one of its base types", its becouse i write the program in sharpdevelop 4.4.2, please anyone can help me? thanks

sorry for my english

." , 

Crash

$
0
0

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.01586
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 211224kb
GC Heap Memory       : 66616kb

Unhandled exception terminated the workbench
Exception thrown:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index)
   at System.Windows.Forms.Design.ToolStripMenuItemDesigner.CommitEdit(Type type, String text, Boolean commit, Boolean enterKeyPressed, Boolean tabKeyPressed)
   at System.Windows.Forms.Design.ToolStripTemplateNode.CommitEditor(Boolean commit, Boolean enterKeyPressed, Boolean tabKeyPressed)
   at System.Windows.Forms.Design.ToolStripTemplateNode.Commit(Boolean enterKeyPressed, Boolean tabKeyPressed)
   at System.Windows.Forms.Design.ToolStripTemplateNode.TemplateTextBox.IsInputKey(Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessage(Message& msg)
   at System.Windows.Forms.Integration.ApplicationInterop.ThreadMessageFilter(MSG& msg, Boolean& outHandled)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(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.Workbench.WorkbenchStartup.Run(IList`1 fileList)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- Recent log messages:
22:46:07.065 [1] DEBUG - Forms designer: Save C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\MainForm.Designer.cs
22:46:07.065 [1] DEBUG - OpenedFileClosed: C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\MainForm.resx
22:46:07.067 [1] DEBUG - FormsDesigner unloading, setting ActiveDesignSurface to null
22:46:07.070 [1] DEBUG - Forms designer: Removing ComponentAdded handler for nested container setup
22:46:07.179 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\Form1.cs]' to key '1e13ec5:C:\USERS\RAMAN\DOCUMENTS\SHARPDEVELOP PROJECTS\MOSTIN\FORM1.CS'
22:46:07.211 [1] DEBUG - OpenedFileClosed: C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\Form1.cs
22:46:07.211 [1] DEBUG - OpenedFileClosed: C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\Form1.Designer.cs
22:46:07.211 [1] DEBUG - OpenedFileClosed: C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\Form1.resx
22:46:07.211 [1] DEBUG - FormsDesigner unloading, setting ActiveDesignSurface to null
22:46:07.215 [1] DEBUG - Forms designer: Removing ComponentAdded handler for nested container setup
22:46:07.307 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\app.config]' to key '1e13ec5:C:\USERS\RAMAN\DOCUMENTS\SHARPDEVELOP PROJECTS\MOSTIN\APP.CONFIG'
22:46:07.355 [1] DEBUG - XmlTreeView.Dispose
22:46:07.365 [1] DEBUG - OpenedFileClosed: C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\app.config
22:46:07.366 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\MainForm.Designer.cs]' to key '1e13ec5:C:\USERS\RAMAN\DOCUMENTS\SHARPDEVELOP PROJECTS\MOSTIN\MAINFORM.DESIGNER.CS'
22:46:07.392 [1] DEBUG - OpenedFileClosed: C:\Users\Raman\Documents\SharpDevelop Projects\Mostin\MainForm.Designer.cs
22:46:07.394 [1] DEBUG - FormsDesigner unloading, setting ActiveDesignSurface to null
22:46:07.396 [1] INFO - CurrentProject changed to null
22:46:07.446 [1] INFO - Saved CodeCompletionDataUsageCache (166 of 166 items)
22:46:07.448 [63] DEBUG - Serializing 6 files to C:\Users\Raman\AppData\Local\Temp\SharpDevelop5.1\Mostin.dc31ed22.prj
22:46:07.524 [1] INFO - Waiting for background tasks to finish...
22:46:07.629 [1] INFO - Background tasks have finished.
22:46:07.629 [1] DEBUG - Service shutdown: ICSharpCode.SharpDevelop.Workbench.IOutputPad
22:46:07.629 [1] DEBUG - Service shutdown: ICSharpCode.SharpDevelop.Debugging.IDebuggerService
22:46:07.632 [1] INFO - Finished running workbench.
22:46:07.632 [1] FATAL - System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index)
   at System.Windows.Forms.Design.ToolStripMenuItemDesigner.CommitEdit(Type type, String text, Boolean commit, Boolean enterKeyPressed, Boolean tabKeyPressed)
   at System.Windows.Forms.Design.ToolStripTemplateNode.CommitEditor(Boolean commit, Boolean enterKeyPressed, Boolean tabKeyPressed)
   at System.Windows.Forms.Design.ToolStripTemplateNode.Commit(Boolean enterKeyPressed, Boolean tabKeyPressed)
   at System.Windows.Forms.Design.ToolStripTemplateNode.TemplateTextBox.IsInputKey(Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessage(Message& msg)
   at System.Windows.Forms.Integration.ApplicationInterop.ThreadMessageFilter(MSG& msg, Boolean& outHandled)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(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.Workbench.WorkbenchStartup.Run(IList`1 fileList)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: <null>
ProjectService.CurrentProject: <null>
Workbench.ActiveContent: [AvalonEditViewContent ]

 

IronPython support in latest SharpDevelop tool

$
0
0

Hi,

Do latest version of SharpDevelop tool have support for IronPython ? If yes does it support for both 32-bit and 64-bit versions ?

 Presently i am using SharpDevelop 4.4 version and which supports only 32 - bit version of IronPython internally. I want to configure it for IronPython 64 - bit version that is my project's requirement. I tried replacing the path in Tools -> Options -> Tools -> Python with 64 bit ironpython but no luck. Can you please guide me how to configure 64 - bit version in SharpDevelop 4.4

Thanks,

Vivek

Unhandled exception terminated the workbench - Upon Save As of Project

$
0
0

What I was doing:

  • Was building a Revit Add-in following "My First Revit Plugin"; while adapting C# instructions to SharpDevelop - VB.NET
  • See <http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=16849339>
  • Had created all code.  Completed successful Analysis > Test > ... current project.  Also completed successful build.
  • Then could not find dll file.  So was attempting to Save As to a new location, with plan to re-build.

Expected:

  • Placement of file(s) at new Save As target. 
  • And ability to run build again and have DLL go to new path

Result:

  • One file ("Lab1PLaceGroup") was placed at new path - C:\RvtAddInTest\ 
  • SharpDevelop crashed

 

 

SharpDevelop Version : 4.2.0.8783-27231549
.NET Version         : 4.0.30319.42000
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United States) (en-US)
Running as 64 bit process
Working Set Memory   : 415532kb
GC Heap Memory       : 118120kb

Unhandled exception terminated the workbench
Exception thrown:
System.OverflowException: Value was either too large or too small for a Double.
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Double.Parse(String s, IFormatProvider provider)
   at ICSharpCode.NRefactory.Parser.VB.Lexer.ReadDigit(Char ch, Int32 x)
   at ICSharpCode.NRefactory.Parser.VB.Lexer.NextInternal()
   at ICSharpCode.NRefactory.Parser.VB.Lexer.Next()
   at ICSharpCode.NRefactory.Parser.VB.Lexer.NextToken()
   at ICSharpCode.SharpDevelop.Dom.VBNet.VBNetExpressionFinder.FindFullExpression(String text, Int32 offset)
   at ICSharpCode.SharpDevelop.Refactoring.EditorContext.GetExpressionAt(ITextEditor editor, Int32 caretLine, Int32 caretColumn)
   at ICSharpCode.SharpDevelop.Refactoring.EditorContext.GetExpressionAtCaret(ITextEditor editor)
   at ICSharpCode.SharpDevelop.Refactoring.EditorContext..ctor(ITextEditor editor)
   at ICSharpCode.SharpDevelop.Refactoring.EditorActionsProvider..ctor(ITextEditor editor, IList`1 providers)
   at ICSharpCode.AvalonEdit.AddIn.ContextActionsRenderer.BuildPopupViewModel(ITextEditor editor)
   at ICSharpCode.AvalonEdit.AddIn.ContextActionsRenderer.TimerMoveTick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- Recent log messages:
14:12:53.363 [SDmain] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.OpenFileFromProjectBrowser', activation=Menu
14:12:53.363 [SDmain] INFO - Open file C:\Users\gmiller\AppData\Local\Temp\{28E13785-18F6-4901-88D1-96D3DB8BA15D}\Revit\DocHookups12624\1161238016\Lab1PlaceGroup\Source\Lab1PlaceGroup\obj\Debug\Lab1PlaceGroup.vbproj.FileListAbsolute.txt
14:12:53.365 [SDmain] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\gmiller\AppData\Local\Temp\{28E13785-18F6-4901-88D1-96D3DB8BA15D}\Revit\DocHookups12624\1161238016\Lab1PlaceGroup\Source\Lab1PlaceGroup\obj\Debug\Lab1PlaceGroup.vbproj.FileListAbsolute.txt]
14:12:53.365 [SDmain] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Lab1PlaceGroup.vbproj.FileListAbsolute.txt]
14:12:53.365 [SDmain] DEBUG - NavigationService
 ActiveViewContent: Lab1PlaceGroup.vbproj.FileListAbsolute.txt
           Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
14:12:53.365 [SDmain] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\gmiller\AppData\Local\Temp\{28E13785-18F6-4901-88D1-96D3DB8BA15D}\Revit\DocHookups12624\1161238016\Lab1PlaceGroup\Source\Lab1PlaceGroup\obj\Debug\Lab1PlaceGroup.vbproj.FileListAbsolute.txt]
14:13:31.161 [SDmain] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
14:13:32.257 [SDmain] INFO - CurrentProject changed to null
14:13:36.637 [SDmain] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.ShowPropertiesForNode', activation=Menu
14:13:36.638 [SDmain] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad
14:13:41.176 [SDmain] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
14:13:47.914 [SDmain] INFO - CurrentProject changed to Lab1PlaceGroup
14:13:59.258 [SDmain] INFO - CurrentProject changed to null
14:14:01.719 [SDmain] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Commands.SaveFileAs', activation=MainMenu
14:15:39.707 [SDmain] DEBUG - OpenedFileFileNameChange: C:\Users\gmiller\AppData\Local\Temp\{28E13785-18F6-4901-88D1-96D3DB8BA15D}\Revit\DocHookups12624\1161238016\Lab1PlaceGroup\Source\Lab1PlaceGroup\obj\Debug\Lab1PlaceGroup.vbproj.FileListAbsolute.txt => C:\RvtAddInTest\Lab1PlaceGroup.vb
14:15:39.707 [SDmain] INFO - ClearParseInformation: C:\Users\gmiller\AppData\Local\Temp\{28E13785-18F6-4901-88D1-96D3DB8BA15D}\Revit\DocHookups12624\1161238016\Lab1PlaceGroup\Source\Lab1PlaceGroup\obj\Debug\Lab1PlaceGroup.vbproj.FileListAbsolute.txt
14:15:39.708 [SDmain] DEBUG - Save C:\RvtAddInTest\Lab1PlaceGroup.vb
14:15:39.709 [SDmain] INFO - C:\RvtAddInTest\Lab1PlaceGroup.vb
14:15:39.713 [SDmain] DEBUG - ParseInformationUpdated C:\RvtAddInTest\Lab1PlaceGroup.vb new!=null:True
14:15:47.547 [SDmain] INFO - Unloading services...
14:15:47.560 [SDmain] DEBUG - Removing part C:\Users\gmiller\AppData\Local\Temp\{28E13785-18F6-4901-88D1-96D3DB8BA15D}\Revit\DocHookups12624\1161238016\Lab1PlaceGroup\Source\Lab1PlaceGroup\ThisDocument.vb from compound class Lab1PlaceGroup.ThisDocument
14:15:47.560 [SDmain] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
14:15:47.595 [SDmain] INFO - Saved CodeCompletionDataUsageCache (16 of 16 items)
14:15:47.613 [SDmain] INFO - Finished running workbench.
14:15:47.614 [SDmain] FATAL - System.OverflowException: Value was either too large or too small for a Double.
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Double.Parse(String s, IFormatProvider provider)
   at ICSharpCode.NRefactory.Parser.VB.Lexer.ReadDigit(Char ch, Int32 x)
   at ICSharpCode.NRefactory.Parser.VB.Lexer.NextInternal()
   at ICSharpCode.NRefactory.Parser.VB.Lexer.Next()
   at ICSharpCode.NRefactory.Parser.VB.Lexer.NextToken()
   at ICSharpCode.SharpDevelop.Dom.VBNet.VBNetExpressionFinder.FindFullExpression(String text, Int32 offset)
   at ICSharpCode.SharpDevelop.Refactoring.EditorContext.GetExpressionAt(ITextEditor editor, Int32 caretLine, Int32 caretColumn)
   at ICSharpCode.SharpDevelop.Refactoring.EditorContext.GetExpressionAtCaret(ITextEditor editor)
   at ICSharpCode.SharpDevelop.Refactoring.EditorContext..ctor(ITextEditor editor)
   at ICSharpCode.SharpDevelop.Refactoring.EditorActionsProvider..ctor(ITextEditor editor, IList`1 providers)
   at ICSharpCode.AvalonEdit.AddIn.ContextActionsRenderer.BuildPopupViewModel(ITextEditor editor)
   at ICSharpCode.AvalonEdit.AddIn.ContextActionsRenderer.TimerMoveTick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- Post-error application state information:
Installed 3rd party AddIns: [SharpDevelop 4.2.0.8783], [CodeAnalysis 0.0.0.0], [SourceAnalysis 0.0.0.0], [Unit Testing Addin 0.0.0.0], [C# Binding 0.0.0.0], [Python Binding 0.0.0.0], [Ruby Binding 0.0.0.0], [VB .NET Binding 0.0.0.0], [XAML binding 0.0.0.0], [Debugger 0.0.0.0], [AvalonEdit.AddIn 0.0.0.0], [Class Diagram 0.0.0.0], [Data Addin 0.0.0.0], [ILSpyAddIn 0.0.0.0], [Forms Designer 0.0.0.0], [HexEditor 0.0.0.0], [IconViewerAddIn 0.0.0.0], [Resource Editor 0.0.0.0], [WPF Designer AddIn 0.0.0.0], [XML Editor 0.0.0.0], [AddInManager 0.0.0.0], [Microsoft Help System v1.0], [PInvoke Add-in 0.0.0.0], [Regular expressions toolkit 0.0.0.0], [Hornung.ResourceToolkit 0.0.0.0], [Search & Replace 0.0.0.0], [SharpRefactoring 0.0.0.0]
ProjectService.OpenSolution: <null>
ProjectService.CurrentProject: <null>

MSB3270 on Windows 10

$
0
0

Hello, I started a new notebook running Windows 10 Pro (x64) using #D 5.1 (details see below) and get the following warnings:

Konflikt zwischen Prozessorarchitektur des Projekts "MSIL", das erstellt wird, und der Prozessorarchitektur des Verweises, "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "x86". Dieser Konflikt kann zu Laufzeitfehlern führen. Ändern Sie ggf. mithilfe des Konfigurations-Managers die als Ziel angegebene Prozessorarchitektur Ihres Projekts so, dass die Prozessorarchitekturen zwischen Ihrem Projekt und den Verweisen ausgerichtet werden, oder wählen Sie eine Abhängigkeit von Verweisen mit einer Prozessorarchitektur, die der als Ziel angegebene Prozessorarchitektur Ihres Projekts entspricht. (MSB3270)

Konflikt zwischen Prozessorarchitektur des Projekts "MSIL", das erstellt wird, und der Prozessorarchitektur des Verweises, "System.Web", "AMD64". Dieser Konflikt kann zu Laufzeitfehlern führen. Ändern Sie ggf. mithilfe des Konfigurations-Managers die als Ziel angegebene Prozessorarchitektur Ihres Projekts so, dass die Prozessorarchitekturen zwischen Ihrem Projekt und den Verweisen ausgerichtet werden, oder wählen Sie eine Abhängigkeit von Verweisen mit einer Prozessorarchitektur, die der als Ziel angegebene Prozessorarchitektur Ihres Projekts entspricht. (MSB3270)

I don't understand the Windows and .NET installation and therefore I'm not able to reproduce the help in the earlier posts via http://community.sharpdevelop.net/search/SearchResults.aspx?q=MSB3270&o=DateDescending

My project is compiled again .NET 4.0 (because there is a 4.0 assembly) to AnyCPU and advanced options set to Auto / 32-bit Intel-kompatibler Prozessor. Win Control Panel (Systemsteuerung) tells me that the following programs are installed:

  • Visual C++ 2008 Redist x86 9.0.30729
  • Windows SDK for Windows 7 (7.1) 7.1.7600.0.30514

In the control panel, I don't find any information about the installed .NET versions. (As far as I remember, in Win7 the .NET versions are shown in the list of programs.) Total Commander (used instead of Windows Explorer) contains folder C:\Windows\Microsoft.NET\Framework\v4.0.30319 (and folders for v1.0, v1.1 and v2.0) but no 4.5 folder.

Can someone tell me how I can find informations about .NET 4.5 on my system and if #D is missing any tools?

Thanks in advance, Juergen

System Details:

SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version         : 4.6.01586
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : German (Germany) (de-DE)
Running under WOW6432, processor architecture: x86-64

Export SharpDevelop project for Visual Studio .NET 2003 (and 2005)?

$
0
0
I haven't used SharpDevelop very often (well, neither have I used VS .NET all that often either) but I know it has a VS .NET project/solution importer which converts it to the SharpDevelop combine format, etc. That's a really nice feature.

I was wondering if there is an export equivalent in the current release or a future release? It would be really useful since then Developers can share code between SharpDevelop & VS .NET without having to manually re-create a solution/project, etc., keeping the settings intact.

Cannot add reference to 64 bit COM objects?

$
0
0

The COM tab on the Add Reference form does not show the same items as the equivalent in Visual Studio - specifically, it seems that some/all(?) 64 bit COM objects are not shown. A project created in VS with references to 64 bit COM objects opens/compiles/runs OK in SharpDevelop, but I would much rather just add the references in the SharpDevelop GUI.

Is there a way to achieve this? 

AvalonEdit highlight rule : support for regex lookbehind

$
0
0

Hi,

Using AvalonEdit 5.0.3. There does not appear to be support for regex lookbehind either positive or negative. Lookahead works fine. It appears it chokes on the "less than" character in the lookbehind sytntax.

For instance I have the folloing line where I want to capture the entire line except for the word Note at the begining:

Note Example of IMO 562, severe wind and rolling

Using the following rule:
<Rule color="Note">
(?<=Note).*$
</Rule>
Results in the following error loading the .xshd file

Name cannot begin with the '=' character

Debugging, using Netoffice & events

$
0
0

I'm trying to inspect variables while debugging, in Visual Studio all works fine. In SD all works fine except when debugging within a NetOffice event handler. In the below code if I break within myOlItems_ItemAdd sub, I can't inspect any vars and everything freezes in outlook and the app. I'm sure this has something to do with threads but if anyone can confirm this and why and if there is a workaround I'd appreciate it.

Thanks

-TD

Imports Outlook = NetOffice.OutlookApi

Imports NetOffice.OutlookApi.Enums

Public Partial Class MainForm

Public Sub New()

   Me.InitializeComponent()

End Sub

Sub Button1Click(sender As Object, e As EventArgs)

  Dim outlookApplication As New Outlook.Application()

  Dim objNS As Outlook._NameSpace = outlookApplication.GetNamespace("MAPI")

  Dim inboxFolder As Outlook.MAPIFolder = objNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox)

  Dim olInboxItems As Outlook.Items = CType(inboxFolder.Items, Outlook.Items)

  Dim ItemAdded As Outlook.Items_ItemAddEventHandler = AddressOf Me.myOlItems_ItemAdd

      AddHandler olInboxItems.ItemAddEvent, ItemAdded

End Sub

Private Sub myOlItems_ItemAdd(ByVal Item As Object)

Debugger.break

MessageBox.Show("Made it here")

End Sub

End Class

 

New decomplier branch

$
0
0

I have been looking at the various branches and noted a new decomplier version.

What's the difference between the current and the new branch?

When and if is the new verson expected on the main branch

Other than the 2 blog postings, are thaere any docs on ILSpy?

 

 

 

 

 

Important Question Regarding AvalonEdit or TextEditor License

$
0
0

So AvalonEdit is licensed under GNU Library General Public License (LGPL). I have made my own modification to the library's source code. I understand that I have to release the modified source code. My questions are:

  1. Do I release the modfied source code under the same license? Or can I choose another one, like MIT for example?
  2. Do I put my own name in the copyright field of the modified source code, or do I put IC#Code?

Can someone tell me why you have both ILBlock AND ILBasicBlock?

$
0
0

I am using some of the ILSpy code to make a decompiler for Game Maker.  While I have some great success (Cut and pasting LoopAndConditions more or less fixed ALOT of issues) I am having trouble understanding why you have both types of blocks.

I understand why the optimizing pass breaks them up into ILBasicBlock as it makes it MUCH easyer to figure out diffrent code paterns, whatI don't understand is why you can't just use the ILBlock instead.  Wouldn't it be easyer to have just one block type and have the optimizer use that?  Heck, you could even have the block's label info in a seperate property so you don't keep having to patern match for it?

Just fair warning I am not asking ot rewrite anything, it all works:P  I am just new to graph theory and was wondering if my lack of understanding was more an issue

As a side note, I havn't gone to the ILExpression to Ast part of the code so I don't know what trasforms happen there.

Exception thrown: Debugger.DebuggerException: The requested chain index is too big

$
0
0
SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version         : 4.5.50938
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : Portuguese (Brazil) (pt-BR)
Current UI language  : en
Working Set Memory   : 256036kb
GC Heap Memory       : 97994kb

Exception thrown:
Debugger.DebuggerException: The requested chain index is too big
   at Debugger.Thread.GetStackFrameAt(UInt32 chainIndex, UInt32 frameIndex)
   at Debugger.StackFrame.get_CorILFrame()
   at Debugger.StackFrame.GetArgumentCorValue(Int32 index)
   at Debugger.StackFrame.GetArgumentValue(Int32 index, Boolean checkCapturedVariables)
   at ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad.GetFullName(StackFrame frame, Boolean hasSymbols)
   at ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad.CreateItem(StackFrame frame, Boolean& previousItemIsExternalMethod)
   at ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad.<>c__DisplayClass6_0.b__0(StackFrame f)
   at Debugger.AddIn.TreeModel.Utils.ProcessItem[T](Process process, T item, Action`1 work, Int64 debuggeeStateWhenEnqueued)

---- Recent log messages:
10:21:25.255 [1] INFO - Evaluated node 'g' in 0 ms
10:21:25.255 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\[redactedusername]\Documents\SharpDevelop Projects\ConsumidorStandalone\[redactedprojectname]Standalone\[redactedprojectname]Program.cs]
10:21:25.255 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: [redactedprojectname]Program.cs]
10:21:25.255 [1] INFO - CurrentProject changed to [redactedprojectname]Standalone
10:21:25.255 [1] DEBUG - NavigationService
	ActiveViewContent: [redactedprojectname]Program.cs
	          Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
10:21:25.255 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\[redactedusername]\Documents\SharpDevelop Projects\ConsumidorStandalone\[redactedprojectname]Standalone\[redactedprojectname]Program.cs]
10:21:25.715 [6] DEBUG - Resolved (Line 95, Col 7) to 
10:21:30.458 [1] INFO - Debugger Command: StepOver
10:21:30.474 [1] INFO - Open file c:\Users\[redactedusername]\Documents\SharpDevelop Projects\ConsumidorStandalone\[redactedprojectname]Standalone\[redactedprojectname]Program.cs
10:21:30.490 [1] INFO - Evaluated node 'args' in 0 ms
10:21:30.490 [1] INFO - Evaluated node 'DATACOLETA' in 0 ms
10:21:30.490 [1] INFO - Evaluated node 'ADDDAYS' in 0 ms
10:21:30.490 [1] INFO - Evaluated node 'interactiveMode' in 0 ms
10:21:30.490 [1] INFO - Evaluated node 'concaturl' in 0 ms
10:21:30.490 [1] INFO - Evaluated node 'p' in 0 ms
10:21:30.490 [1] INFO - Evaluated node 'g' in 0 ms
10:21:30.552 [1] INFO - Evaluated node 'args' in 0 ms
10:21:30.552 [1] INFO - Evaluated node 'DATACOLETA' in 0 ms
10:21:30.552 [1] INFO - Evaluated node 'ADDDAYS' in 0 ms
10:21:30.552 [1] INFO - Evaluated node 'interactiveMode' in 0 ms
10:21:30.552 [1] INFO - Evaluated node 'concaturl' in 0 ms
10:21:30.552 [1] INFO - Evaluated node 'p' in 0 ms
10:21:30.568 [1] INFO - Evaluated node 'e' in 76 ms
10:21:30.583 [1] ERROR - 
--> Exception:
Debugger.DebuggerException: The requested chain index is too big
   at Debugger.Thread.GetStackFrameAt(UInt32 chainIndex, UInt32 frameIndex)
   at Debugger.StackFrame.get_CorILFrame()
   at Debugger.StackFrame.GetArgumentCorValue(Int32 index)
   at Debugger.StackFrame.GetArgumentValue(Int32 index, Boolean checkCapturedVariables)
   at ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad.GetFullName(StackFrame frame, Boolean hasSymbols)
   at ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad.CreateItem(StackFrame frame, Boolean& previousItemIsExternalMethod)
   at ICSharpCode.SharpDevelop.Gui.Pads.CallStackPad.<>c__DisplayClass6_0.b__0(StackFrame f)
   at Debugger.AddIn.TreeModel.Utils.ProcessItem[T](Process process, T item, Action`1 work, Int64 debuggeeStateWhenEnqueued)
10:21:30.630 [1] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at Debugger.AddIn.TreeModel.Utils.ProcessItem[T](Process process, T item, Action`1 work, Int64 debuggeeStateWhenEnqueued)
   at Debugger.AddIn.TreeModel.Utils.<>c__DisplayClass1_1`1.b__0()
   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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   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.LegacyInvokeImpl(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.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at ICSharpCode.SharpDevelop.Workbench.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.Startup.SharpDevelopMain.RunApplication()
   at ICSharpCode.SharpDevelop.Startup.SharpDevelopMain.Run()
   at ICSharpCode.SharpDevelop.Startup.SharpDevelopMain.Main(String[ args)

---- Post-error application state information:
Installed 3rd party AddIns: 
ProjectService.CurrentSolution: [Solution C:\Users\[redactedusername]\Documents\SharpDevelop Projects\ConsumidorStandalone\ConsumidorStandalone.sln with 5 projects]
ProjectService.CurrentProject: [CSharpProject: [redactedprojectname]Standalone]
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\[redactedusername]\Documents\SharpDevelop Projects\ConsumidorStandalone\[redactedprojectname]Standalone\[redactedprojectname]Program.cs]

Binary files in .xpt project templates

$
0
0

I believe I've found a bug with including binary files in projects created from a .xpt template file.

Steps to reproduce:

1) Create an image file called ProjectTemplateBinaryFileBug.bmp (actually any binary file will do)
2) Create a project template file called ProjectTemplateBinaryFileBug.xpt with the following content

<?xml version="1.0"?>
<Template originator="Simon Bridewell" created="07/12/2016">
   
    <TemplateConfiguration>
        <Name>Binary file bug reproduction</Name>
        <Category>C#</Category>
        <Icon>C#.Project.Library</Icon>
        <Description>Reproduces a bug with including binary files in .xpt project templates.</Description>
        <SupportedTargetFrameworks>v2.0,v3.0,v3.5,v4.0,v4.5</SupportedTargetFrameworks>
    </TemplateConfiguration>
   
    <Project name="${ProjectName}" language="C#">
        <Files>
            <File name="ProjectTemplateBinaryFileBug.bmp" src="ProjectTemplateBinaryFileBug.bmp" binary="true" />
        </Files>
    </Project>

</Template>

3) Copy both files to the data\templates\project\CSharp folder within the SharpDevelop installation folder
4) Within SharpDevelop, either create a new solution or add a project to an existing solution, in either case selecting the C# project template called "Binary file bug reproduction" and calling the project "Bug".

Expected result:

New project created with default content plus the binary file created in step 1.

Actual result:

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.01586
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : English (United Kingdom) (en-GB)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 108552kb
GC Heap Memory       : 12624kb

Exception writing C:\Users\Simon\Documents\SharpDevelop Projects\Bug\Bug\ProjectTemplateBinaryFileBug.bmp
Exception thrown:
System.IO.FileNotFoundException: Could not find file 'ProjectTemplateBinaryFileBug.bmp'.
File name: 'ProjectTemplateBinaryFileBug.bmp'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at ICSharpCode.SharpDevelop.Templates.ProjectDescriptor.CreateProject(ProjectTemplateResult templateResults, String defaultLanguage, ISolutionFolder target)

The project is created, but the reference to the binary file has a warning icon indicating that the file doesn't exist.

After doing a debug build and some stepping through, it turns out that SharpDevelop is trying to find this file in its bin folder rather than its actual location within the data\templates folder (I wasn't able to work out why, sorry). Only files with the binary="true" attribute are affected.

I also tried installing the 5.2 beta from the build server but got more or less the same exception:

SharpDevelop Version : 5.2.0.5230-Beta-ba372efb
.NET Version         : 4.6.01586
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : English (United Kingdom) (en-GB)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 108508kb
GC Heap Memory       : 14781kb

Exception writing C:\Users\Simon\Documents\SharpDevelop Projects\Bug\Bug\ProjectTemplateBinaryFileBug.bmp
Exception thrown:
System.IO.FileNotFoundException: Could not find file 'ProjectTemplateBinaryFileBug.bmp'.
File name: 'ProjectTemplateBinaryFileBug.bmp'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at ICSharpCode.SharpDevelop.Templates.ProjectDescriptor.CreateProject(ProjectTemplateResult templateResults, String defaultLanguage, ISolutionFolder target)

Workaround:

Change the src attribute of the File element in the .xpt file from "ProjectTemplateBinaryFileBug.bmp" to "..\data\templates\project\csharp\ProjectTemplateBinaryFileBug.bmp" (or put the binary file in SharpDevelop's bin folder - probably not a good idea!)

Thanks

Simon

Unhandled Exception

$
0
0

SharpDevelop Version : 5.1.0.5216-0e58df71

.NET Version         : 4.5.51209

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   : 120676kb

GC Heap Memory       : 27901kb

 

Error on LoadSolutionProjects thread

Exception thrown:

System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: Specified method is not supported.

   at Mono.Cecil.TypeSystem.CoreTypeSystem.LookupType(String namespace, String name)

   at Mono.Cecil.TypeSystem.LookupSystemType(TypeReference& reference, String name, ElementType element_type)

   at Mono.Cecil.TypeSystem.get_Void()

   at Mono.Cecil.SignatureReader.ReadTypeSignature(ElementType etype)

   at Mono.Cecil.SignatureReader.ReadMethodSignature(IMethodSignature method)

   at Mono.Cecil.MetadataReader.ReadMemberReferenceSignature(UInt32 signature, TypeReference declaring_type)

   at Mono.Cecil.MetadataReader.ReadTypeMemberReference(MetadataToken type, String name, UInt32 signature)

   at Mono.Cecil.MetadataReader.ReadMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.GetMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.LookupToken(MetadataToken token)

   at Mono.Cecil.MetadataReader.ReadCustomAttributeRange(Range range, Collection`1 custom_attributes)

   at Mono.Cecil.MetadataReader.ReadCustomAttributes(ICustomAttributeProvider owner)

   at Mono.Cecil.Mixin.<>c.<GetCustomAttributes>b__18_0(ICustomAttributeProvider provider, MetadataReader reader)

   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)

   at Mono.Cecil.Mixin.GetCustomAttributes(ICustomAttributeProvider self, Collection`1& variable, ModuleDefinition module)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddAttributes(AssemblyDefinition assembly, IList`1 outputList)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.LoadAssembly(FileName fileName, CancellationToken cancellationToken, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetLoadedAssembly(FileName fileName, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetAssembly(FileName fileName, Boolean includeInternalMembers, CancellationToken cancellationToken)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.DoResolveReferences(IProgressMonitor progressMonitor)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass25_0.<Initialize>b__0()

   at System.Threading.Tasks.Task.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()

   --- End of inner exception stack trace ---

   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

   at System.Threading.Tasks.Task.Wait()

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.Initialize(IProgressMonitor progressMonitor, List`1 filesToParse)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass10_0.<.ctor>b__0(IProgressMonitor monitor)

   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobTask.Run(IProgressMonitor progressMonitor)

   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()

---> (Inner Exception #0) System.NotSupportedException: Specified method is not supported.

   at Mono.Cecil.TypeSystem.CoreTypeSystem.LookupType(String namespace, String name)

   at Mono.Cecil.TypeSystem.LookupSystemType(TypeReference& reference, String name, ElementType element_type)

   at Mono.Cecil.TypeSystem.get_Void()

   at Mono.Cecil.SignatureReader.ReadTypeSignature(ElementType etype)

   at Mono.Cecil.SignatureReader.ReadMethodSignature(IMethodSignature method)

   at Mono.Cecil.MetadataReader.ReadMemberReferenceSignature(UInt32 signature, TypeReference declaring_type)

   at Mono.Cecil.MetadataReader.ReadTypeMemberReference(MetadataToken type, String name, UInt32 signature)

   at Mono.Cecil.MetadataReader.ReadMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.GetMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.LookupToken(MetadataToken token)

   at Mono.Cecil.MetadataReader.ReadCustomAttributeRange(Range range, Collection`1 custom_attributes)

   at Mono.Cecil.MetadataReader.ReadCustomAttributes(ICustomAttributeProvider owner)

   at Mono.Cecil.Mixin.<>c.<GetCustomAttributes>b__18_0(ICustomAttributeProvider provider, MetadataReader reader)

   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)

   at Mono.Cecil.Mixin.GetCustomAttributes(ICustomAttributeProvider self, Collection`1& variable, ModuleDefinition module)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddAttributes(AssemblyDefinition assembly, IList`1 outputList)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.LoadAssembly(FileName fileName, CancellationToken cancellationToken, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetLoadedAssembly(FileName fileName, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetAssembly(FileName fileName, Boolean includeInternalMembers, CancellationToken cancellationToken)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.DoResolveReferences(IProgressMonitor progressMonitor)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass25_0.<Initialize>b__0()

   at System.Threading.Tasks.Task.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()<---

 

 

---- Recent log messages:

09:33:58.370 [8] DEBUG - Git: OverlayIconManager Thread started

09:33:58.373 [1] INFO - Initialize DirectoryNode C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan

09:33:58.404 [1] DEBUG - ActiveWorkbenchWindowChanged to 

09:33:58.412 [1] DEBUG - CompilerMessageView: Combined 5 appends.

09:33:58.425 [1] DEBUG - NavigationService -- suspend logging

09:33:58.425 [1] INFO - Open file C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan\Program.cs

09:33:58.449 [1] DEBUG - Update Foldings

09:33:58.475 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan\Program.cs]' from key '1e13ec5:C:\USERS\HOGANK\DOCUMENTS\SHARPDEVELOP PROJECTS\REDISSCAN\REDISSCAN\PROGRAM.CS'

09:33:58.537 [1] INFO - Open file C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan\BasicTest.cs

09:33:58.560 [1] DEBUG - Update Foldings

09:33:58.563 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan\BasicTest.cs]' from key '1e13ec5:C:\USERS\HOGANK\DOCUMENTS\SHARPDEVELOP PROJECTS\REDISSCAN\REDISSCAN\BASICTEST.CS'

09:33:58.569 [1] DEBUG - NavigationService -- resume logging

09:33:58.573 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan\BasicTest.cs]

09:33:58.573 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: BasicTest.cs]

09:33:58.573 [1] INFO - CurrentProject changed to RedisScan

09:33:58.574 [1] DEBUG - NavigationService

ActiveViewContent: BasicTest.cs

         Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}

09:33:58.574 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan\BasicTest.cs]

09:33:58.673 [LoadSolutionProjects] DEBUG - RedisScan: ParseFiles() finished. 0 files were re-used from CC cache; 3 files were parsed (3 of those are serializable)

09:33:58.696 [1] DEBUG - Update Foldings

09:33:58.698 [1] DEBUG - Update Foldings

09:33:59.307 [12] DEBUG - Resolved (Line 1, Col 1) to 

09:33:59.307 [7] DEBUG - Resolved (Line 10, Col 1) to 

09:33:59.602 [8] DEBUG - Git: OverlayIconManager Thread finished

09:33:59.677 [LoadSolutionProjects] ERROR - Error on LoadSolutionProjects thread

--> Exception:

System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: Specified method is not supported.

   at Mono.Cecil.TypeSystem.CoreTypeSystem.LookupType(String namespace, String name)

   at Mono.Cecil.TypeSystem.LookupSystemType(TypeReference& reference, String name, ElementType element_type)

   at Mono.Cecil.TypeSystem.get_Void()

   at Mono.Cecil.SignatureReader.ReadTypeSignature(ElementType etype)

   at Mono.Cecil.SignatureReader.ReadMethodSignature(IMethodSignature method)

   at Mono.Cecil.MetadataReader.ReadMemberReferenceSignature(UInt32 signature, TypeReference declaring_type)

   at Mono.Cecil.MetadataReader.ReadTypeMemberReference(MetadataToken type, String name, UInt32 signature)

   at Mono.Cecil.MetadataReader.ReadMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.GetMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.LookupToken(MetadataToken token)

   at Mono.Cecil.MetadataReader.ReadCustomAttributeRange(Range range, Collection`1 custom_attributes)

   at Mono.Cecil.MetadataReader.ReadCustomAttributes(ICustomAttributeProvider owner)

   at Mono.Cecil.Mixin.<>c.<GetCustomAttributes>b__18_0(ICustomAttributeProvider provider, MetadataReader reader)

   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)

   at Mono.Cecil.Mixin.GetCustomAttributes(ICustomAttributeProvider self, Collection`1& variable, ModuleDefinition module)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddAttributes(AssemblyDefinition assembly, IList`1 outputList)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.LoadAssembly(FileName fileName, CancellationToken cancellationToken, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetLoadedAssembly(FileName fileName, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetAssembly(FileName fileName, Boolean includeInternalMembers, CancellationToken cancellationToken)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.DoResolveReferences(IProgressMonitor progressMonitor)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass25_0.<Initialize>b__0()

   at System.Threading.Tasks.Task.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()

   --- End of inner exception stack trace ---

   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

   at System.Threading.Tasks.Task.Wait()

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.Initialize(IProgressMonitor progressMonitor, List`1 filesToParse)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass10_0.<.ctor>b__0(IProgressMonitor monitor)

   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobTask.Run(IProgressMonitor progressMonitor)

   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()

---> (Inner Exception #0) System.NotSupportedException: Specified method is not supported.

   at Mono.Cecil.TypeSystem.CoreTypeSystem.LookupType(String namespace, String name)

   at Mono.Cecil.TypeSystem.LookupSystemType(TypeReference& reference, String name, ElementType element_type)

   at Mono.Cecil.TypeSystem.get_Void()

   at Mono.Cecil.SignatureReader.ReadTypeSignature(ElementType etype)

   at Mono.Cecil.SignatureReader.ReadMethodSignature(IMethodSignature method)

   at Mono.Cecil.MetadataReader.ReadMemberReferenceSignature(UInt32 signature, TypeReference declaring_type)

   at Mono.Cecil.MetadataReader.ReadTypeMemberReference(MetadataToken type, String name, UInt32 signature)

   at Mono.Cecil.MetadataReader.ReadMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.GetMemberReference(UInt32 rid)

   at Mono.Cecil.MetadataReader.LookupToken(MetadataToken token)

   at Mono.Cecil.MetadataReader.ReadCustomAttributeRange(Range range, Collection`1 custom_attributes)

   at Mono.Cecil.MetadataReader.ReadCustomAttributes(ICustomAttributeProvider owner)

   at Mono.Cecil.Mixin.<>c.<GetCustomAttributes>b__18_0(ICustomAttributeProvider provider, MetadataReader reader)

   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)

   at Mono.Cecil.Mixin.GetCustomAttributes(ICustomAttributeProvider self, Collection`1& variable, ModuleDefinition module)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.AddAttributes(AssemblyDefinition assembly, IList`1 outputList)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.LoadAssembly(FileName fileName, CancellationToken cancellationToken, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetLoadedAssembly(FileName fileName, Boolean includeInternalMembers)

   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.GetAssembly(FileName fileName, Boolean includeInternalMembers, CancellationToken cancellationToken)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.DoResolveReferences(IProgressMonitor progressMonitor)

   at ICSharpCode.SharpDevelop.Parser.ProjectContentContainer.<>c__DisplayClass25_0.<Initialize>b__0()

   at System.Threading.Tasks.Task.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()<---

 

09:33:59.678 [LoadSolutionProjects] WARN - Stack trace of last exception log:

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

   at System.Environment.get_StackTrace()

   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)

   at ICSharpCode.SharpDevelop.Parser.LoadSolutionProjects.JobQueue.RunThread()

   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

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

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

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

   at System.Threading.ThreadHelper.ThreadStart()

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution C:\Users\Hogank\Documents\SharpDevelop Projects\RedisScan\RedisScan.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: RedisScan]

Workbench.ActiveContent: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.

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

   at ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()

   at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()

   at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<>c.<InitializeWorkbench>b__4_0()

   at ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()

CS2001 .Net Framework Version=4.5.2AssemblyAttributes.cs not found

$
0
0

I've tried targeting several different frameworks, same error, AssemblyAttributes not found.  Seen 1 or 2 posts but no resolution.

Win10-32, Console project, 1st one with S.D.

How to plot a pixel in Windows.Forms ?

$
0
0

Hello folks,

 

after a long way I now know how to draw something in a PictureBox or a Panel in a Windows Form.

But I still have no clue how to just plot a single pixel.

I'm in need of a method like:

PlotPixel(Color, x,y);

I don't want to draw a rectangle with the size of 1 or similar work arounds to just get a point.

Many thanks for your help.

Best Wishes

 

 

Sharpdevelop freezes when I run the ftp sample code provided by Microsoft

$
0
0

I use SharpDevelop v  5.1.0.5134-RC-d5052dc5.

I used the sample code found at https://msdn.microsoft.com/en-us/library/ms229715(v=vs.110).aspx to login to the host provided by my ISP.

When the code reaches the line             

Stream requestStream = request.GetRequestStream();

the program hangs and I can't stop it. The console created is also unresponsive. 

When I kill the exe file, SharpDevelop comes with the following error:

 

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5

.NET Version         : 4.6.01586

OS Version           : Microsoft Windows NT 6.3.9600.0

Current culture      : English (Australia) (en-AU)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 168676kb

GC Heap Memory       : 43428kb

 

Unhandled WPF exception

Exception thrown:

System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)

   at Debugger.Interop.CorDebug.ICorDebugModule.__GetFunctionFromToken(UInt32 methodDef, ICorDebugFunction& ppFunction)

   at Debugger.PdbSymbolSource.<GetSequencePoints>d__5.MoveNext()

   at Debugger.Breakpoint.SetBreakpoint(Module module)

   at Debugger.NDebugger.AddBreakpoint(Breakpoint breakpoint)

   at Debugger.NDebugger.AddBreakpoint(String fileName, Int32 line, Int32 column, Boolean enabled)

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.AddBreakpoint(BreakpointBookmark bookmark)

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<InitializeService>b__63_0(Object sender, BookmarkEventArgs e)

   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)

   at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.OnAdded(BookmarkEventArgs e)

   at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark)

   at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark, IDocument document, Int32 line)

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.ToggleBreakpointAt(ITextEditor editor, Int32 lineNumber)

   at ICSharpCode.AvalonEdit.AddIn.IconBarMargin.OnMouseUp(MouseButtonEventArgs e)

   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   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.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

---- Recent log messages:

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]

13:32:36.819 [1] ERROR - Unhandled WPF exception

--> Exception:

System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)

   at Debugger.Interop.CorDebug.ICorDebugModule.__GetFunctionFromToken(UInt32 methodDef, ICorDebugFunction& ppFunction)

   at Debugger.PdbSymbolSource.<GetSequencePoints>d__5.MoveNext()

   at Debugger.Breakpoint.SetBreakpoint(Module module)

   at Debugger.NDebugger.AddBreakpoint(Breakpoint breakpoint)

   at Debugger.NDebugger.AddBreakpoint(String fileName, Int32 line, Int32 column, Boolean enabled)

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.AddBreakpoint(BreakpointBookmark bookmark)

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<InitializeService>b__63_0(Object sender, BookmarkEventArgs e)

   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)

   at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.OnAdded(BookmarkEventArgs e)

   at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark)

   at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark, IDocument document, Int32 line)

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.ToggleBreakpointAt(ITextEditor editor, Int32 lineNumber)

   at ICSharpCode.AvalonEdit.AddIn.IconBarMargin.OnMouseUp(MouseButtonEventArgs e)

   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   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.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution C:\_Projects\AProjectsCS\Ftp\Ftp.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: Ftp]

Workbench.ActiveContent: [AvalonEditViewContent C:\_Projects\AProjectsCS\Ftp\Ftp\Program.cs]

 

 

 

Viewing all 1764 articles
Browse latest View live