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

I can't see windows form for c++

$
0
0

Hi i want to make a windows form but with sharpdevelop and i can't do it.

Picture:

I can create other objects but nothing related with c++ why? Sharpdevelop doesnt take support or maybe i'm using the wrong version or maybe not enough people updating this option? Thanks in advance! For this wonderful project! it's awesome!

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

Sorry wrong section. the next time i will take care.


Sharpdevelop 5.1 installation on Windows 10

$
0
0

I have windows 10, 64 bit operating system. When I am trying to install version 5.1, I get an error message "This setup requires the Microsoft Visual C++ 2008 SP1 Redistributable Package to be installed."

I have downloaded Visual C++ 2008 SP1 from microsoft but it still give same issue. Let me know, What I am missing here,

thanks

 

Cannot create an IronPython application

$
0
0

When trying to create an IronPython project, I get an error saying that IronPython.Modules.dll is missing - although it is located in "C:\Program Files (x86)\SharpDevelop\4.4\AddIns\BackendBindings\PythonBinding" where it seems to be looking for it.

Then I get this error as well when clicking on Program.py:

SharpDevelop Version : 4.4.2.9749-39bf891c
.NET Version         : 4.0.30319.42000
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (Australia) (en-AU)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 175060kb
GC Heap Memory       : 55954kb

Exception thrown:
System.ApplicationException: Error parsing C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\MainForm.py ---> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find the file specified.
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer textBuffer)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParserService.ParseFile(String fileName, ITextBuffer fileContent)
   at ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding.GetParseInfo(String fileName, ITextBuffer textContent)
   at ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding.CanAttachTo(IViewContent content)
   at ICSharpCode.SharpDevelop.DisplayBindingService.AttachSubWindows(IViewContent viewContent, Boolean isReattaching)
   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.Internal.Templates.ProjectTemplate.<>c__DisplayClass2.<ReadAction>b__0(ProjectCreateInformation projectCreateInformation)
   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.RunOpenActions(ProjectCreateInformation projectCreateInformation)
   at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.CreateProject()
   at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.TryCreateProject(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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:
08:50:04.041 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll
08:50:04.042 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll
08:50:04.042 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll
08:50:04.042 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll
08:50:04.042 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll
08:50:04.043 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll
08:50:04.043 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll
08:50:04.043 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll
08:50:04.044 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll
08:50:04.052 [10] DEBUG - Git: OverlayIconManager Thread started
08:50:04.233 [1] DEBUG - CompilerMessageView: Combined 4 appends.
08:50:04.261 [LoadSolutionProjects] ERROR - Error on LoadSolutionProjects thread
--> Exception:
System.AggregateException: One or more errors occurred. ---> System.ApplicationException: Error parsing C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\Program.py ---> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find the file specified.
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer textBuffer)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent parentProjectContent, String fileName, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParseProjectContent.<>c__DisplayClass13.<Initialize2>b__e(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
   --- 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 System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
   at ICSharpCode.SharpDevelop.ParseProjectContent.Initialize2(IProgressMonitor progressMonitor)
   at ICSharpCode.SharpDevelop.LoadSolutionProjects.JobTask.Run(IProgressMonitor progressMonitor)
   at ICSharpCode.SharpDevelop.LoadSolutionProjects.JobQueue.RunThread()
---> (Inner Exception #0) System.ApplicationException: Error parsing C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\Program.py ---> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find the file specified.
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer textBuffer)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent parentProjectContent, String fileName, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParseProjectContent.<>c__DisplayClass13.<Initialize2>b__e(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---

---> (Inner Exception #1) System.ApplicationException: Error parsing C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\MainForm.py ---> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find the file specified.
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer textBuffer)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParserService.ParseFile(IProjectContent parentProjectContent, String fileName, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParseProjectContent.<>c__DisplayClass13.<Initialize2>b__e(FileName fileName)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---

08:50:04.262 [LoadSolutionProjects] 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.SharpDevelop.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()
08:50:04.655 [10] DEBUG - Git: OverlayIconManager Thread finished
08:50:05.966 [1] DEBUG - Save C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\app.config
08:50:05.982 [1] DEBUG - OpenedFileClosed: C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\app.config
08:50:06.041 [1] DEBUG - NavigationService -- suspend logging
08:50:06.121 [1] DEBUG - Creating project content for wintest
08:50:06.132 [1] DEBUG - ProjectBrowser: Loading solution [Solution: FileName=C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest.sln, HasProjects=True, ReadOnly=False] into project tree view
08:50:06.148 [3] DEBUG - Git: OverlayIconManager Thread started
08:50:06.160 [1] INFO - Open file C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\MainForm.py
08:50:06.170 [1] DEBUG - Activated feature 'ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent/open.py'
08:50:06.177 [11] ERROR - Error during async parse
--> Exception:
System.ApplicationException: Error parsing C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\MainForm.py ---> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find the file specified.
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer textBuffer)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.<>c__DisplayClass31.<BeginParse>b__30()
08:50:06.178 [11] 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.SharpDevelop.ParserService.FileEntry.<>c__DisplayClass31.<BeginParse>b__30()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
08:50:06.180 [1] ERROR - ThreadException caught
--> Exception:
System.ApplicationException: Error parsing C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest\MainForm.py ---> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find the file specified.
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, String fileContent)
   at ICSharpCode.PythonBinding.PythonParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer textBuffer)
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
   at ICSharpCode.SharpDevelop.ParserService.ParseFile(String fileName, ITextBuffer fileContent)
   at ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding.GetParseInfo(String fileName, ITextBuffer textContent)
   at ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding.CanAttachTo(IViewContent content)
   at ICSharpCode.SharpDevelop.DisplayBindingService.AttachSubWindows(IViewContent viewContent, Boolean isReattaching)
   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.Internal.Templates.ProjectTemplate.<>c__DisplayClass2.<ReadAction>b__0(ProjectCreateInformation projectCreateInformation)
   at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.RunOpenActions(ProjectCreateInformation projectCreateInformation)
   at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.CreateProject()
   at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.TryCreateProject(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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:
Workbench.ActiveContent: <null>
ProjectService.OpenSolution: [Solution: FileName=C:\Users\sergeyv\Documents\SharpDevelop Projects\wintest\wintest.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: <null>

Using VisualLineElementGenerator and VisualLineElement to create secondary empty line

$
0
0

I am trying to build a diffing utility into my application and want to show a blank, unnumbered line after certain lines to indicate a deleted line between 2 different files. Based on this thread I foundI'm trying to understand VisualLineElementGenerator and VisualLineElements. I've found a few exmaples of implementations and have managed the ability to insert blank/empty text runs at the begining and in the middle of lines, but not at the end. I've ben trying to maybe have my CreateTextRun function return something like:

Return New TextCharacters(Environment.NewLine + "!", Me.TextRunProperties)

But I get an exception saying "The returned TextRun is too long." & vbCrLf & "Parameter name: MyVisualLineElement.CreateTextRun"

 

Below is my class. How Can I achieve adding the EndOfLine at the end of a run so I get an empty secondary line (if the secondary line contains whitespace that is acceptable)? Thanks!

 

Private Class MyVisualLineElement
    Inherits VisualLineElement
    Public Sub New()
        MyBase.New(visualLength:=1, documentLength:=0)
    End Sub
    Public Overrides Function CreateTextRun(startVisualColumn As Integer, context As ITextRunConstructionContext) As TextRun
        Return New TextCharacters(Environment.NewLine + " ", Me.TextRunProperties)
        'Return New TextEndOfLine(1)
    End FunctionEnd Class

 

To be clear, returning New TextEndOfLine(1) the the end of a run doesn't produce an error...it simply doesn't add any additional lines.

error after hibernation windows 7

$
0
0
SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version         : 4.5.50938
OS Version           : Microsoft Windows NT 6.1.7600.0
Current culture      : Russian (Russia) (ru-RU)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 76336kb
GC Heap Memory       : 24327kb
Unhandled WPF exception
Exception thrown:
System.ArgumentException: Корневой элемент Visual для VisualTarget не может иметь родительский элемент.
   в System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
   в System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
   в System.Windows.Interop.HwndTarget.set_RootVisual(Visual value)
   в System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   в System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   в System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
   в System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   в System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   в ICSharpCode.SharpDevelop.Widgets.ExtendedPopup.OpenOrClose()
   в ICSharpCode.SharpDevelop.Widgets.ExtendedPopup.parent_IsKeyboardFocusedChanged(Object sender, DependencyPropertyChangedEventArgs e)
   в System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
   в System.Windows.UIElement.IsKeyboardFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.PropertyChangedCallback.Invoke(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в ICSharpCode.AvalonEdit.Editing.TextArea.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   в System.Windows.DependencyObject.SetValue(DependencyPropertyKey dp, Boolean value)
   в System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   в System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   в System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr hwnd)
   в System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
23:31:17.009 [1] DEBUG - ParseInformationUpdated C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON_2\Program.cs (updated)
23:31:17.103 [1] DEBUG - Update Foldings
23:31:17.118 [5] DEBUG - Resolved (Line 25, Col 6) to 
23:31:19.210 [12] DEBUG - Resolved (Line 26, Col 1) to 
23:31:19.756 [5] DEBUG - Resolved (Line 25, Col 28) to 
23:31:21.066 [1] DEBUG - ParseInformationUpdated C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON_2\Program.cs (updated)
23:31:21.191 [12] DEBUG - Resolved (Line 25, Col 29) to 
23:31:21.191 [1] DEBUG - Update Foldings
23:31:22.267 [1] DEBUG - ParseInformationUpdated C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON_2\Program.cs (updated)
23:31:22.392 [12] DEBUG - Resolved (Line 25, Col 31) to 
23:31:22.392 [1] DEBUG - Update Foldings
23:31:23.968 [1] DEBUG - Resolved (Line 24, Col 6) to 
23:31:24.997 [1] DEBUG - Resolved (Line 24, Col 6) to 
23:31:25.106 [12] DEBUG - Resolved (Line 24, Col 13) to 
23:31:27.930 [1] DEBUG - ParseInformationUpdated C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON_2\Program.cs (updated)
23:31:28.024 [5] DEBUG - Resolved (Line 24, Col 3) to [ResolveResult System.Void]
23:31:28.024 [1] DEBUG - Update Foldings
23:31:29.443 [1] DEBUG - ParseInformationUpdated C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON_2\Program.cs (updated)
23:31:29.490 [1] DEBUG - Update Foldings
23:31:29.537 [12] DEBUG - Resolved (Line 24, Col 3) to [UnknownIdentifierResolveResult Console]
23:31:32.516 [1] DEBUG - Resolved (Line 24, Col 7) to [UnknownIdentifierResolveResult Console]
23:31:37.375 [1] DEBUG - Resolved (Line 24, Col 4) to [UnknownIdentifierResolveResult Console]
23:31:38.842 [1] DEBUG - Resolved (Line 24, Col 4) to [UnknownIdentifierResolveResult Console]
23:31:38.935 [12] DEBUG - Resolved (Line 24, Col 5) to [UnknownIdentifierResolveResult Console]
01:10:01.386 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ArgumentException: Корневой элемент Visual для VisualTarget не может иметь родительский элемент.
   в System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
   в System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
   в System.Windows.Interop.HwndTarget.set_RootVisual(Visual value)
   в System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   в System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   в System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
   в System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   в System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   в ICSharpCode.SharpDevelop.Widgets.ExtendedPopup.OpenOrClose()
   в ICSharpCode.SharpDevelop.Widgets.ExtendedPopup.parent_IsKeyboardFocusedChanged(Object sender, DependencyPropertyChangedEventArgs e)
   в System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
   в System.Windows.UIElement.IsKeyboardFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.PropertyChangedCallback.Invoke(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в ICSharpCode.AvalonEdit.Editing.TextArea.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   в System.Windows.DependencyObject.SetValue(DependencyPropertyKey dp, Boolean value)
   в System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   в System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   в System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr hwnd)
 
 в System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns: 
ProjectService.CurrentSolution: [Solution C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON.sln with 2 projects]
ProjectService.CurrentProject: [CSharpProject: LESSON_2]
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\ADM\Desktop\C#_PROJECT\LESSON\LESSON_2\Program.cs]
 

DLL Debugging

$
0
0

Greetings everyone,

I'm trying to debug a dll project made in #develop, which is called by a application made in delphi, but every time i attach the Delphi Application(Host.exe) or run it by adding the host application to the "Start external program" option on the project, the breakpoints become unavailable. Anyone have any idea of how it can be done, if it can? 

C# 6.0?

$
0
0

Is there any way to enable C# 6.0 in the editor, or even just in the compiler?

If not, is there a roadmap for this feature?

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?

OFL Modified to MIT License Change

$
0
0

Our team is currently evaluating a piece of software that has a downstream dependency on SharpZipLib.  They code is currently pulled from Nuget, and as such is licensed under the older GPL Modified license.  I noticed that the current version in Github is licensed with an MIT license, a license that would be preferable to our legal team.  Do you have an eta on when the current Nuget version of SharpZipLib will be updated to reflect the licensing change?

 

Thanks!

Matt Ramsey

Unix Z Compression unzip availability

$
0
0

Please note that I am mainly a SQL dev, with little current experience in .Net/C#.  We are using an older (4.0?) version of icSharp and I have seen a few posts on Unix Z Compression not being supported.  (http://community.sharpdevelop.net/forums/t/11466.aspx & 3850).  I also checked everywhere to see if any updates have been completed since then, but could not find anything.  Bottom line, is there a version (supported or not) that has a fix that allows for Unix Z Compression files to be unzipped?

What Zip format files are supported in current version on icSharp Unzip?

$
0
0

Can you please provide a list of what Zip format files are supported in current version of icSharp Unzip?

When the new release?

$
0
0

Any little little news? I really like SharpDev and i use all day! But now it is taking a little bit old.. For example MetroUI Framework 1.4.0 is starting to have some problem with Sharp (Probably because is optimized for .net 4.5.2 while sharp use 4.5.1? I don't know it's just what i guess...). And can't wait for a better WPF support! Please post some news about the developing <3.

Thanks, sorry for my bad english.

call python dll from C++

$
0
0

To Whom It May Concern:

     I would like to call a Python dll in C++. I am using SharpDevelop 4.4.

   An example source file for Python would be:

    def somemethod(self):

        print "in some method"

    def isodd(self, n):
        return 1 == n % 2

  How would I:

  1) import the dll: + write function prototypes

  2) specify the parameters in c format:

      Python list, string, int, float, double, bool

  3) pass ByVal or ByRef in c 

    Thank you,

               Tom

Application to create simple diagrams

$
0
0

I want to make a simple application for mapping guitar chords and scales.

So far I have created a form and I have a picturebox displaying a .bmp image of a 6x7 grid representing the strings and frets on a guitar fretboard.


To create a chord or scale diagram I want to be able to click above any fret (horizontal line) on a string (vertical line) and leave a marker (a simple black square will do) to represent each note in the diagram.

I then want to click a button and save a bitmap image of the the original fretboard image with the selected markers present.


This is the first time I've used SharpDeveiop and I cant find any info on this task.


How would you approach it?


Unhandled exception while trying to debug an ExcelDna add-in, SD 5.1

$
0
0

I received the below exception while trying to use the debugger on an ExcelDna add-in.  The exception was thrown on the first breakpoint before any interactive features were available.  Worth noting that I can debug the add-in with no issues using SD 4.4 including running through breakpoints.  I also do not have any issues running the debugger alongside the add-in to collect Debug.Print messages.  The issue comes when trying to enter the code with a breakpoint.

Not sure what additional info would be helpful to track down this issue.  I assume a simple ExcelDna add-in would fail and that this is not specific to any code I am running since the breakpoint is at the first line of the function being called.  Let me know if you need/want a minimal example to demonstrate the behavior.

 

SharpDevelop Version : 5.1.0.5216-0e58df71

.NET Version         : 4.6.01055

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

GC Heap Memory       : 127521kb

 

Exception thrown:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at Debugger.TypeSystemExtensions.ModuleMetadataInfo.GetMetadataToken(IUnresolvedEntity entity)

   at Debugger.TypeSystemExtensions.GetMetadataToken(IMethod method)

   at Debugger.PDBSymbolSourceExtensions.GetSymMethod(IMethod method)

   at Debugger.PdbSymbolSource.Handles(IMethod method)

   at Debugger.Process.<>c__DisplayClass73_0.<GetSymbolSource>b__0(ISymbolSource s)

   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)

   at Debugger.Process.GetSymbolSource(IMethod method)

   at Debugger.StackFrame.get_NextStatement()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.JumpToCurrentLine()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)

   at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)

   at Debugger.ManagedCallback.<>c__DisplayClass13_0.<ExitCallback>b__0()

   at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()

   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.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.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Recent log messages:

14:04:27.033 [23] DEBUG - Received command ReportEvent

14:04:27.220 [23] DEBUG - Received command ReportEvent

14:04:27.659 [1] DEBUG - Resolved (Line 174, Col 4) to 

14:04:27.938 [23] DEBUG - Received command ReportEvent

14:04:27.940 [23] DEBUG - Received command ReportEvent

14:04:27.940 [23] DEBUG - Received command BuildDone

14:04:27.941 [23] INFO - Finished building ExcelFormulaViewer, success=True

14:04:27.941 [1] INFO - Debugger Command: Start (withDebugger=True)

14:04:27.941 [1] INFO - Saving layout file: C:\Users\TDAUser\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml

14:04:27.942 [1] INFO - Loading layout file: C:\Users\TDAUser\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False

14:04:27.986 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)

14:04:27.986 [1] DEBUG - ChooseLayoutCommand.Run()

14:04:27.986 [1] INFO - Saving layout file: C:\Users\TDAUser\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml

14:04:28.000 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Documents\TDA Programming\ExcelFormulaViewer\ExcelFormulaViewer\MyClass.cs]

14:04:28.419 [1] DEBUG - Resolved (Line 174, Col 4) to 

14:04:32.152 [24] DEBUG - Resolved (Line 183, Col 9) to 

14:04:34.114 [1] DEBUG - Resolved (Line 162, Col 3) to 

14:04:37.941 [5] DEBUG - Telling worker process to exit

14:04:37.941 [5] DEBUG - Waiting for thread-join

14:04:37.943 [23] DEBUG - Cannot read from WorkerProcess 11192: end of stream

14:04:37.943 [23] DEBUG - Stopped reading from WorkerProcess 11192.

14:04:37.943 [23] DEBUG - Telling worker process to exit

14:04:37.943 [23] DEBUG - End of reader thread on WorkerProcess 11192.

14:04:37.944 [5] DEBUG - Joined!

14:04:39.265 [1] ERROR - ThreadException caught

--> Exception:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at Debugger.TypeSystemExtensions.ModuleMetadataInfo.GetMetadataToken(IUnresolvedEntity entity)

   at Debugger.TypeSystemExtensions.GetMetadataToken(IMethod method)

   at Debugger.PDBSymbolSourceExtensions.GetSymMethod(IMethod method)

   at Debugger.PdbSymbolSource.Handles(IMethod method)

   at Debugger.Process.<>c__DisplayClass73_0.<GetSymbolSource>b__0(ISymbolSource s)

   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)

   at Debugger.Process.GetSymbolSource(IMethod method)

   at Debugger.StackFrame.get_NextStatement()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.JumpToCurrentLine()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)

   at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)

   at Debugger.ManagedCallback.<>c__DisplayClass13_0.<ExitCallback>b__0()

   at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()

   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.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.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution C:\Documents\TDA Programming\ExcelFormulaViewer\ExcelFormulaViewer.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: ExcelFormulaViewer]

Workbench.ActiveContent: [AvalonEditViewContent C:\Documents\TDA Programming\ExcelFormulaViewer\ExcelFormulaViewer\MyClass.cs]

Problem with auto property

$
0
0

SharpDevelop 5.1.0

Target Framework: 4.5.2

I am getting this error:

'Compilation.Dimentions.Width.get' must declare a body because it is not marked abstract or extern. Automatically implemented properties must define both get and set accessors. (CS0840) - C:\Users\Gary\Documents\SharpDevelop Projects\Compilation\Compilation\Dimentions.cs:18,28

publicclassResolution
    {
        publicint Height { get; }
        publicint Width { get; }
                
        publicResolution(int Height, int Width)
        {
            this.Height = Height;
            this.Width = Width;
        }
    }

This code works fine in Visual Studio, what am I missing?

Design tab wont appear

$
0
0

I imported a windows form app created in VS2015. But the design tab does not appear

Can't do debug the ASP.net program program and Can't open web tab of the project.

$
0
0

Hi,

I have getting an error while debugging the program.Please help me to resolve this issue. Error details are mentioned below.

 

SharpDevelop Version : 4.4.2.9749-39bf891c

.NET Version         : 4.0.30319.42000

OS Version           : Microsoft Windows NT 6.2.9200.0

Current culture      : English (India) (en-IN)

Running under WOW6432, processor architecture: x86-64

Terminal Server Session

Working Set Memory   : 238468kb

GC Heap Memory       : 91237kb

 

Unhandled WPF exception

Exception thrown:

System.Xml.XmlException: There are multiple root elements. Line 1, position 516.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)

   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)

   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

   at System.Xml.XmlTextReaderImpl.Read()

   at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)

   at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)

   at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)

   at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.LoadProjectExtensions(String name)

   at ICSharpCode.AspNet.Mvc.VisualStudioProjectExtension.ContainsWebProjectProperties()

   at ICSharpCode.AspNet.Mvc.WebProject.HasWebProjectProperties()

   at ICSharpCode.AspNet.Mvc.WebProject.GetWebProjectProperties()

   at ICSharpCode.AspNet.Mvc.WebProjectOptionsPanel.Load(MSBuildBasedProject project, String configuration, String platform)

   at ICSharpCode.SharpDevelop.Gui.OptionPanels.ProjectOptionPanel.Load()

   at ICSharpCode.SharpDevelop.Gui.OptionPanels.ProjectOptionPanel.ICSharpCode.SharpDevelop.IOptionPanel.LoadOptions()

   at ICSharpCode.SharpDevelop.Gui.TabbedOptions.OptionTabPage.LoadPadContentIfRequired()

   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:

10:48:20.503 [18] DEBUG - Stopped reading from WorkerProcess 6228.

10:48:20.504 [18] DEBUG - Telling worker process to exit

10:48:20.504 [18] DEBUG - End of reader thread on WorkerProcess 6228.

10:48:20.504 [11] DEBUG - Joined!

10:48:22.986 [31] DEBUG - Telling worker process to exit

10:48:22.986 [31] DEBUG - Waiting for thread-join

10:48:22.987 [7] DEBUG - Cannot read from WorkerProcess 9476: end of stream

10:48:22.987 [7] DEBUG - Stopped reading from WorkerProcess 9476.

10:48:22.987 [7] DEBUG - Telling worker process to exit

10:48:22.987 [7] DEBUG - End of reader thread on WorkerProcess 9476.

10:48:22.988 [31] DEBUG - Joined!

10:48:24.352 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

10:48:24.353 [1] INFO - CurrentProject changed to CAMACloud.Console

10:48:30.512 [1] INFO - CurrentProject changed to 

10:48:30.521 [1] INFO - Initialize DirectoryNode D:\Workspace\DCS Projects

10:48:30.522 [24] DEBUG - Git: OverlayIconManager Thread started

10:48:30.522 [31] DEBUG - SVN: OverlayIconManager Thread started

10:48:30.620 [31] DEBUG - SVN: OverlayIconManager Thread finished

10:48:30.637 [24] DEBUG - Git: OverlayIconManager Thread finished

10:48:34.302 [1] INFO - CurrentProject changed to 

10:48:36.384 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.ShowPropertiesForNode', activation=Menu

10:48:36.388 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView

10:48:36.388 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow:]

10:48:36.388 [1] DEBUG - NavigationService

ActiveViewContent: 

         Subview: TabPageText

10:48:36.388 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView

 

---- Post-error application state information:

Installed 3rd party AddIns: 

Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.Dialogs.ProjectOptionsView

ProjectService.OpenSolution: [Solution: FileName=D:\Workspace\DCS Projects\, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [VBNetProject:]

How to connect to a SQL DB using Entity Framework or Linq?

$
0
0

I did not find a function to connect DB using Linq framework.

When I tried to connect using Entity framework, it gives me an following error (please help me):

 

An error occured during generating the EDMX file from "C:\Users\ahmed\AppData\Local\Temp\tmpF285.ssdl".

 

Detailed error message:

EdmGen for Microsoft (R) .NET Framework version 4.6.1586.0

Copyright (C) Microsoft Corporation. All rights reserved.

 

C:\Users\ahmed\AppData\Local\Temp\tmpF285.ssdl(2,220) : error 0168: The provider did not return a ProviderManifest instance. Could not determine storage version; a valid storage connection or a version hint is required.

 

Generation Complete -- 1 errors, 0 warnings

 

ICSharpCode.Data.EDMDesigner.Core.ObjectModelConverters.ObjectModelConverterException: An error occured during generating the EDMX file from "C:\Users\ahmed\AppData\Local\Temp\tmpF285.ssdl".

   at ICSharpCode.Data.EDMDesigner.Core.ObjectModelConverters.EDMConverter.CreateEDMXFromIDatabase(IDatabase database, String modelNamespace, String objectContextNamespace, String objectContextName)

   at ICSharpCode.Data.EDMDesigner.Core.Windows.EDMWizard.EDMWizardWindow.OnFinished()

   at ICSharpCode.Data.Core.UI.Windows.WizardWindowInnards.btnFinish_Click(Object sender, RoutedEventArgs e)

Viewing all 1764 articles
Browse latest View live