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

How to disable ScrollBar markers?

$
0
0

If there any option to disable it?

If its not possible atm, let it be feature request. I think, it can be handy in View menu or scrollbar context menu.


Adding COM reference: Type Library not found

$
0
0

Hi there,

I am a sharp develop newbie and have the following difficulties after installing sharpdevelop and dependencies:

I would like to develop C# Addins for Solidworks, so I added the COM references in the project tab. In the code the "using SldWorks" directive is underlined in red with the comment "Using directive is not used and can be removed safely", although I use it in the code.

When I try to compile the code I get several warnings like that one:

Cannot get the file path for type library "83a33d31-27c5-11ce-bfd4-00400513bb57" version 18. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) (MSB3284)

And error messages like:

The type or namespace name 'SldWorks' could not be found (are you missing a using directive or an assembly reference?)

Any hints how to solve this issue? The same code works in Visual Studio Express, so I hope it is just a configuration issue...

Thanks in advance!

Best

Chris

 

 

 

 

Create tar file and set encryption and password similar to zipoutputstream

$
0
0

Hello Experts

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

Currently there is no password or encryption set to the tar file. I need to encrypt and set password to the new tar file.

I reviewed previous user forums and found some info related to encryption and password for zipoutputstream but no info on how to encrypt and set password for Tar file. 

I appreciate your great help!!!

Following is the sample code:

        private void CreateTar(string pWritePath, string pReadPath)
        {
            using (TarInputStream tarInputStream = new TarInputStream(File.OpenRead(pReadPath)))
            {
                using (TarOutputStream tarOutputStream = new TarOutputStream(File.Create(pWritePath)))
                {
                    TarEntry curEntry;

                    while ((curEntry = tarInputStream.GetNextEntry()) != null)
                    {
                        TarEntry newEntry = new TarEntry(curEntry.TarHeader);
                        newEntry.Name = curEntry.Name;
                        newEntry.Size = curEntry.Size;
                        newEntry.ModTime = curEntry.ModTime;
                        tarOutputStream.PutNextEntry(newEntry);

                        int size = 2048;
                        byte[ buffer = new byte[size];

                        while (size > 0)
                        {
                            size = tarInputStream.Read(buffer, 0, size);

                            if (size > 0)
                                tarOutputStream.Write(buffer, 0, size);
                        }

                        tarOutputStream.CloseEntry();
                    }
                }
            }

            File.Delete(pReadPath);
        }

Thanks

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.

This is easy to reproduce by running the below code with netoffice installed (nuget Install-Package NetOffice.Excel -Version 1.7.3) any and all versions exibit this problem including in C#. i'm running SD version 4.4.2.9749 vb.net, but still happens in 5.X c# or vb.net.

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

 

Items added to task list are not highlighted

$
0
0

Straight to the point: Once you add a new comment tag to Options -> General -> Task list it does not get highlighted in code with red color (as HACK, TODO, UNDONE, FIXME pre-defined tokens). I guess thats not how it's supposed to be.

Adding last file modification time to default file header

$
0
0

Title of this thread explains it all. How do I make sharpdevelop add/update last file modification time to file headers ?

How to use PackageManagement.Cmdlets in powershell

$
0
0

Hi,

 

I'm trying to use the PackageManagement cmdlets that come with SharpDevelop 5.1, but i'm running into a problem.

This is what i've tried

 

import-module ".\PackageManagement.Cmdlets.dll"

$solution = "C:\Git\TestProject\TestProject.sln"

$project = Get-Project TestProject $solution

 

This results in a TypeInitializationException

System.TypeInitializationException: The type initializer for 'ICSharpCode.PackageManagement.PackageManagementServices' t
hrew an exception. ---> ICSharpCode.Core.ServiceNotFoundException: Required service not found: ICSharpCode.Core.IPropertyService

 

I have also tried

[Reflection.Assembly]::LoadFrom(".\PackageManagement.Cmdlets.dll") | Out-Null

$test = New-Object ICSharpCode.PackageManagement.Cmdlets.GetProjectCmdlet

 

Which resulted in the same exception.

 

Looking at fusion logs, looks like the following libraries are loaded:

 

PackageManagement

NuGet.Core

ICSharpCode.SharpDevelop

ICSharpCode.Core

 

Pull Model not available at the moment

$
0
0

I instaled SharpDevelop 5.1. I'm trying on next way.

New File -> Misc -> Sharp Develop Reports. I get new form where I type file name, report name and choose report type. When I choose Pull Data and click next I get just message "Pull Model not available at the moment". What is wring and how I can fix this?

Thanks

dewebeloper


Use SharpDevelop as JIT-Debugger

$
0
0

I've installed SD 3.2.1.6466 on a designated production-machine (Windows Embedded Standard 6.1.7601) and written a small application that throws an unhandled exception.

The upcoming dialog shows unfortunately only VisualStudio (which is not properly installed):
 

Are there any further steps necessary to get SharpDevelop as a debugging option?

THX

Var keyword highlighting

$
0
0

Hello,

I am looking for a way to change a color of the "var" keyword in SharpDevelop 5.0 as I cannot find it as an option in Options/Text Editor/Highlighting. Can somebody help me out with it? Thanks in advance 

Find required using directives?

$
0
0

Hi guys,

I often write new code and I get errors such as "'System.Array' does not contain a definition for 'ToList' and no extension method 'ToList' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) ".

In the above case, I was missing the "using System.Linq" directive. I usually google the error and I find out what directive I need to add to the project. Is there a better way of finding the missing "using" directives from within SharpDevelop? 

Thanks,
Nick 

I can't see form in my visual basic windows application

$
0
0

Hello i can't the designer of my form when i create one project in visual basic. I selected windows application. However in c# i can see the designer and source the two things, not the same case for visual basic project. Someone know why or how to solve this issue

I get one error when i try to close one program running with debugger

$
0
0

 

 

I think because i'm using sockets and can't be closed.

I get this error:

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      : Dutch (Netherlands) (nl-NL)

Current UI language  : en

Working Set Memory   : 128432kb

GC Heap Memory       : 26560kb

 

Unhandled WPF exception

Exception thrown:

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

   at Debugger.Interop.CorDebug.ICorDebugProcess.__Stop(UInt32 dwTimeoutIgnored)

   at Debugger.Process.AsyncTerminate()

   at Debugger.Process.Terminate()

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

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

   at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)

   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

   at System.Windows.Controls.Primitives.ButtonBase.OnClick()

   at System.Windows.Controls.Button.OnClick()

   at ICSharpCode.Core.Presentation.ToolBarButton.OnClick()

   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

   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:

16:26:09.452 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll

16:26:09.455 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:09.456 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

16:26:09.463 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:09.463 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

16:26:09.479 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:09.479 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

16:26:09.486 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:09.487 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

16:26:09.505 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:09.505 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll

16:26:10.599 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:10.600 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

16:26:10.614 [1] DEBUG - Debugger: Callback: LoadAssembly

16:26:10.614 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

16:26:17.989 [1] DEBUG - Debugger: Callback: CreateThread 6812

16:26:18.954 [6] DEBUG - Telling worker process to exit

16:26:18.954 [6] DEBUG - Waiting for thread-join

16:26:18.961 [15] DEBUG - Cannot read from WorkerProcess 6820: end of stream

16:26:18.961 [15] DEBUG - Stopped reading from WorkerProcess 6820.

16:26:18.961 [15] DEBUG - Telling worker process to exit

16:26:18.961 [15] DEBUG - End of reader thread on WorkerProcess 6820.

16:26:18.962 [6] DEBUG - Joined!

16:26:39.333 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand', activation=Toolbar

16:26:39.333 [1] INFO - Debugger Command: Stop

 

---- Post-error application state information:

Installed 3rd party AddIns: 

Workbench.ActiveContent: [AvalonEditViewContent C:\Users\moh\Desktop\projects\TCPClientClean\TCPClientClean\TCPControl.vb]

ProjectService.OpenSolution: [Solution: FileName=C:\Users\moh\Desktop\projects\TCPClientClean\TCPClientClean.sln, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [VBNetProject: TCPClientClean]

Error Sub Main is declared more than once time

$
0
0

Hi i get all time this error in my program:

 Error Sub Main is declared more than once time

Some way to solve it?

Picture:

Exception when placing mouse over TManager, on line: manager = new TManager ();

$
0
0

SharpDevelop Version : 5.0.0.3540-alpha-16afb54e

.NET Version         : 4.0.30319.42000

OS Version           : Microsoft Windows NT 6.3.9600.0

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

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 472608kb

GC Heap Memory       : 166793kb

 

Unhandled WPF exception

Exception thrown:

System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

   en ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder.ConvertConstructor(IMethod ctor)

   en ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder.ConvertEntity(IEntity entity)

   en ICSharpCode.NRefactory.CSharp.CSharpAmbience.ConvertEntity(IEntity entity, TokenWriter writer, CSharpFormattingOptions formattingPolicy)

   en ICSharpCode.NRefactory.CSharp.CSharpAmbience.ConvertEntity(IEntity entity)

   en ICSharpCode.AvalonEdit.AddIn.XmlDoc.XmlDocTooltipProvider.CreateTooltip(IEntity entity)

   en ICSharpCode.AvalonEdit.AddIn.XmlDoc.XmlDocTooltipProvider.HandleToolTipRequest(ToolTipRequestEventArgs e)

   en ICSharpCode.SharpDevelop.Editor.ToolTipRequestService.RequestToolTip(ToolTipRequestEventArgs e)

   en ICSharpCode.AvalonEdit.AddIn.CodeEditorView.TextEditorMouseHover(Object sender, MouseEventArgs e)

   en System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

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

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

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

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

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

   en ICSharpCode.AvalonEdit.Rendering.TextView.RaiseHoverEventPair(MouseEventArgs e, RoutedEvent tunnelingEvent, RoutedEvent bubblingEvent)

   en ICSharpCode.AvalonEdit.Rendering.TextView.<.ctor>b__0(Object sender, MouseEventArgs e)

   en ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)

   en ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)

   en System.Windows.Threading.DispatcherTimer.FireTick(Object unused)

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

   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

---- Recent log messages:

17:52:16.744 [1] DEBUG - Resolved (Line 33, Col 50) to [TypeResolveResult ICSharpCode.AvalonEdit.Utils.WeakEventManagerBase`2[[ICSharpCode.AvalonEdit.TextEditorWeakEventManager+DocumentChanged],[ICSharpCode.AvalonEdit.ITextEditorComponent]]]

17:52:16.744 [1] DEBUG - Resolved (Line 33, Col 50) to [TypeResolveResult ICSharpCode.AvalonEdit.Utils.WeakEventManagerBase`2[[ICSharpCode.AvalonEdit.TextEditorWeakEventManager+DocumentChanged],[ICSharpCode.AvalonEdit.ITextEditorComponent]]]

17:52:16.745 [1] DEBUG - ParseInformationUpdated D:\luis\CarpetaTrabajo\SharpDevelop_5.0.0.4755_Source\src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\Utils\WeakEventManagerBase.cs (updated)

17:52:16.846 [1] DEBUG - Folding update ignored; parse information is outdated version

17:52:18.728 [1] DEBUG - ParseInformationUpdated D:\luis\CarpetaTrabajo\SharpDevelop_5.0.0.4755_Source\src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\Utils\WeakEventManagerBase.cs (updated)

17:52:18.795 [1] DEBUG - Update Foldings

17:52:19.611 [1] DEBUG - ParseInformationUpdated D:\luis\CarpetaTrabajo\SharpDevelop_5.0.0.4755_Source\src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\Utils\WeakEventManagerBase.cs (updated)

17:52:19.701 [1] DEBUG - Update Foldings

17:52:21.266 [1] DEBUG - Save D:\luis\CarpetaTrabajo\SharpDevelop_5.0.0.4755_Source\src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\Utils\WeakEventManagerBase.cs

17:52:22.503 [1] DEBUG - Resolved (Line 29, Col 31) to [TypeResolveResult ICSharpCode.AvalonEdit.Utils.WeakEventManagerBase`2]

17:52:38.668 [1] DEBUG - Resolved (Line 51, Col 37) to 

17:52:49.377 [1] DEBUG - Resolved (Line 90, Col 9) to 

17:52:50.533 [1] DEBUG - Resolved (Line 96, Col 6) to 

17:52:52.187 [1] DEBUG - Resolved (Line 95, Col 19) to [CSharpInvocationResolveResult [Method System.Windows.WeakEventManager.SetCurrentManager(managerType:System.Type, manager:System.Windows.WeakEventManager):System.Void]]

17:52:57.158 [1] DEBUG - Resolved (Line 97, Col 2) to [ResolveResult System.Void]

17:53:00.295 [1] DEBUG - Resolved (Line 79, Col 3) to 

17:53:02.981 [1] DEBUG - Resolved (Line 66, Col 3) to 

17:53:07.044 [1] DEBUG - Loading context actions - requesting cancellation.

17:53:12.701 [1] DEBUG - Resolved (Line 37, Col 4) to 

17:53:15.639 [1] DEBUG - Resolved (Line 37, Col 4) to 

17:53:24.093 [1] DEBUG - Resolved (Line 52, Col 17) to 

17:53:28.973 [1] DEBUG - Resolved (Line 94, Col 23) to [CSharpInvocationResolveResult [SpecializedMethod `0..ctor():System.Void]]

17:53:29.011 [1] ERROR - Unhandled WPF exception

--> Exception:

System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

   en ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder.ConvertConstructor(IMethod ctor)

   en ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder.ConvertEntity(IEntity entity)

   en ICSharpCode.NRefactory.CSharp.CSharpAmbience.ConvertEntity(IEntity entity, TokenWriter writer, CSharpFormattingOptions formattingPolicy)

   en ICSharpCode.NRefactory.CSharp.CSharpAmbience.ConvertEntity(IEntity entity)

   en ICSharpCode.AvalonEdit.AddIn.XmlDoc.XmlDocTooltipProvider.CreateTooltip(IEntity entity)

   en ICSharpCode.AvalonEdit.AddIn.XmlDoc.XmlDocTooltipProvider.HandleToolTipRequest(ToolTipRequestEventArgs e)

   en ICSharpCode.SharpDevelop.Editor.ToolTipRequestService.RequestToolTip(ToolTipRequestEventArgs e)

   en ICSharpCode.AvalonEdit.AddIn.CodeEditorView.TextEditorMouseHover(Object sender, MouseEventArgs e)

   en System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

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

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

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

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

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

   en ICSharpCode.AvalonEdit.Rendering.TextView.RaiseHoverEventPair(MouseEventArgs e, RoutedEvent tunnelingEvent, RoutedEvent bubblingEvent)

   en ICSharpCode.AvalonEdit.Rendering.TextView.<.ctor>b__0(Object sender, MouseEventArgs e)

   en ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)

   en ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)

   en System.Windows.Threading.DispatcherTimer.FireTick(Object unused)

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

   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

17:53:31.937 [1] DEBUG - Resolved (Line 94, Col 25) to [CSharpInvocationResolveResult [SpecializedMethod `0..ctor():System.Void]]

17:53:31.937 [1] ERROR - Unhandled WPF exception

--> Exception:

System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

   en ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder.ConvertConstructor(IMethod ctor)

   en ICSharpCode.NRefactory.CSharp.Refactoring.TypeSystemAstBuilder.ConvertEntity(IEntity entity)

   en ICSharpCode.NRefactory.CSharp.CSharpAmbience.ConvertEntity(IEntity entity, TokenWriter writer, CSharpFormattingOptions formattingPolicy)

   en ICSharpCode.NRefactory.CSharp.CSharpAmbience.ConvertEntity(IEntity entity)

   en ICSharpCode.AvalonEdit.AddIn.XmlDoc.XmlDocTooltipProvider.CreateTooltip(IEntity entity)

   en ICSharpCode.AvalonEdit.AddIn.XmlDoc.XmlDocTooltipProvider.HandleToolTipRequest(ToolTipRequestEventArgs e)

   en ICSharpCode.SharpDevelop.Editor.ToolTipRequestService.RequestToolTip(ToolTipRequestEventArgs e)

   en ICSharpCode.AvalonEdit.AddIn.CodeEditorView.TextEditorMouseHover(Object sender, MouseEventArgs e)

   en System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

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

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

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

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

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

   en ICSharpCode.AvalonEdit.Rendering.TextView.RaiseHoverEventPair(MouseEventArgs e, RoutedEvent tunnelingEvent, RoutedEvent bubblingEvent)

   en ICSharpCode.AvalonEdit.Rendering.TextView.<.ctor>b__0(Object sender, MouseEventArgs e)

   en ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHover(MouseEventArgs e)

   en ICSharpCode.AvalonEdit.Rendering.MouseHoverLogic.OnMouseHoverTimerElapsed(Object sender, EventArgs e)

   en System.Windows.Threading.DispatcherTimer.FireTick(Object unused)

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

   en 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 D:\luis\CarpetaTrabajo\SharpDevelop_5.0.0.4755_Source\SharpDevelop.sln with 77 projects]

ProjectService.CurrentProject: [CSharpProject: ICSharpCode.AvalonEdit]

Workbench.ActiveContent: [AvalonEditViewContent D:\luis\CarpetaTrabajo\SharpDevelop_5.0.0.4755_Source\src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit\Utils\WeakEventManagerBase.cs]


Change foreground color of segment

$
0
0

Hi.

I need to change foreground or background color of a segment of text in a ICSharpCode.AvalonEdit.TextEditor. This whitout highlight rules but only with offset and length.

The best way??

 

Thanks in advance.

Adding controls to VB.NET winforms with Public modifier by default

$
0
0

While its far from best practice, I have a need to do some work extending a legacy project that expects form controls to be public.  So far I've been going in and changing the controls from Private to Public. Is there a way to just get them to default as public? Additionally, often times I'll add a control to a winform and I'll have to go in and manually add the WithEvents statement. Can this be defaulted as well?

zip is corrupted on Windows Server 2012 and IIS 8.5

$
0
0

I have asp.net code using SharpZipLib version 0.86.0 that creates a zip file and returns it to a client.  The code has worked successfully for years.  We recently upgraded servers to windows 2012 and IIS 8.5 and now the code produces a zip file that cannot be openned.  The error we get is "The compressed (zipped) folder is invalid".  I have tested it extensively - a console app that doesn't go near IIS works just fine.

 

Any ideas what might be happening?

Can't remove breakpoints

$
0
0

I'm using SharpDevelop version 5.1.0

I cannot remove a few breakpoints.

(I did a search and found advise to delete the .sua files.  However, that did not help)

 

 

"Attach to Process" option in SharpDevelop

$
0
0

Hi,

I am trying to find out is there any way in attaching to ADB process in SharpDevelop similar to way as it is described in link given bellow for MonoDevelop?

Attaching MonoDevelop Debugger To Android Device:

https://docs.unity3d.com/Manual/AttachingMonoDevelopDebuggerToAnAndroidDevice.html

I've created TCP port and successfully connected to IP adress of my Android device using ADB process.

Attaching to ADB process in MonoDevelop works fine.

I can debug in MonoDevelop using breakpoints.

But I can't debug using breakpoints in SharpDevelop.

I select "Attach to Process" option and attach SharpDevelop debugger to the same ADB process, but nothing happens when appropriate event israised during debugging.

There is no response in SharpDevelop during debugging in case when breakpoint should be raised.

I tap the button in my app on Android device, but SharpDevelop doesn't respond on appropriate breakpoint connected with button tap event in my code.

Can you tell me how can I fix that?

Thanks

Viewing all 1764 articles
Browse latest View live