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

How to publish web site using SharpDevelop

$
0
0

Hi Team,

SharpDevelop is really cool and most importantly it is free. So I am using for web site develpoment.

But I face one major problem, when I completed my coding, then I am trying to publish web site, but there is no any option for publishing.

So can anyone share workaround for publishing web site using SharpDevelop, please.

Thanks,

Somnath A. Kadam


Custom designer in WPF

$
0
0

Hi, 

I'm considering embedding #develop's WPF editor into an application, and would like to enable the users to design sheets (no problem up to that point) with standard or custom components, but also some kind of list of items that could be populated interactively from the designer. Eg, a small bar with a (+) at left could add a row with an item (like in Word 2016) and so on.

I would love to enable that without leaving the wpf editor, but if this is not posible I could consider design a custom form/editor that would appear when I click on a given property (say, items)'s ellpsis button ("...").

My question is: which one of these two ideas can be made and also, do you have links to tutorials that would explain that clearly or give me a good starting point ?

Thank you in advance (and sorry for my English)

Crashes on opening a solution

$
0
0

SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version         : 4.6.01038
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   : 174944kb
GC Heap Memory       : 50138kb

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 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:
14:39:05.675 [1] DEBUG - NavigationService -- suspend logging
14:39:05.675 [1] DEBUG - NavigationService -- resume logging
14:39:05.675 [1] DEBUG - NavigationService -- suspend logging
14:39:05.675 [1] DEBUG - NavigationService -- resume logging
14:39:05.675 [1] DEBUG - NavigationService -- suspend logging
14:39:05.675 [1] DEBUG - NavigationService -- resume logging
14:39:05.675 [1] DEBUG - NavigationService -- suspend logging
14:39:05.675 [1] DEBUG - NavigationService -- resume logging
14:39:05.675 [1] DEBUG - NavigationService -- suspend logging
14:39:05.675 [1] DEBUG - NavigationService -- resume logging
14:39:05.682 [1] INFO - CurrentProject changed to null
14:39:05.691 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
14:39:05.730 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
14:39:05.751 [LoadSolutionProjects] DEBUG - Deserializing C:\Users\dell\AppData\Local\Temp\SharpDevelop5.1\abcd.859b39b5.prj
14:39:05.798 [5] DEBUG - Resolved (Line 964, Col 22) to
14:39:05.800 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.AvalonEdit.AddIn.resources, Version=5.1.0.5216, Culture=en, PublicKeyToken=null
14:39:05.843 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.AvalonEdit.AddIn.resources, Version=5.1.0.5216, Culture=en, PublicKeyToken=null
14:39:05.878 [1] DEBUG - Update Foldings
14:39:05.883 [1] DEBUG - Update Foldings
14:39:06.103 [7] DEBUG - Resolved (Line 12, Col 25) to [ErrorResolveResult ?]
14:39:06.461 [LoadSolutionProjects] DEBUG - abcd: ParseFiles() finished. 54 files were re-used from CC cache; 12 files were parsed (2 of those are serializable)
14:39:09.982 [8] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: SharpDevelop, Version=5.1.0.5145, Culture=neutral, PublicKeyToken=f829da5c02be14ee
14:39:10.014 [8] WARN - System.IO.FileLoadException: Could not load file or assembly 'SharpDevelop, Version=5.1.0.5145, Culture=neutral, PublicKeyToken=f829da5c02be14ee' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'SharpDevelop, Version=5.1.0.5145, Culture=neutral, PublicKeyToken=f829da5c02be14ee'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at ICSharpCode.NRefactory.Utils.FastSerializer.Deserialize(BinaryReader reader)
   at ICSharpCode.SharpDevelop.Parser.AssemblyParserService.TryReadFromCache(String cacheFileName, DateTime lastWriteTime)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

14:39:10.059 [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 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()<---

14:39:10.122 [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: [Navigation 0.0.0.0]
ProjectService.CurrentSolution: [Solution D:\Git\abcd\abcd.sln with 11 projects]
ProjectService.CurrentProject: <null>
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()

help read data pulse oximeter CMS50D

$
0
0

 

Hello people, I need help: how to read data from a CMS50D+ pulse oximeter in C#? for build a graph in real time. 

where I can see an example?

someone can help me?

 

Thanks

 

how do you convert full C# project to VB.net

$
0
0

This has probably been asked before, but I'm new and didn't see any way to search the forum.

I was searching for something that would convert projects from C# to VB.net and I found a reference to your software. I downloaded the software and followed the directions. The directions said: right click on the project and select convert. But I did not see an option to convert.

I've been asked to help a group of people on sourceforge with their project. I said I would "if" I could convert the code. I would like to help them but I'm not going through the hassel of learning C#. (I know they are almost the same now too)

I would really appreciate any help,

thanks.

How make a file apk with sharpdevelop?

$
0
0

I have build a wpf application and I need to do a apk for pubblishing it

I have versione 4.2 of sharpdevelop.

I need use ziplib?

 

Error when try to change form icon

$
0
0

I get the following error after adding an .ico resource to Resources.rex and try to set the icon on a form.

 

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5

.NET Version         : 4.6.01038

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

GC Heap Memory       : 75078kb

 

Exception thrown:

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

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

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

   at System.Drawing.Icon.BmpFrame()

   at System.Drawing.Icon.ToBitmap()

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

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

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

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

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

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

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

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

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

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

---- Recent log messages:

11:02:19.353 [1] DEBUG - -> [CodeAssignStatement: Left=[CodePropertyReferenceExpression: Name=Image, Target=[CodeFieldReferenceExpression: Name=pictureBox1, Target=[CodeThisReferenceExpression]]], Right=[CodePropertyReferenceExpression: Name=rblogo, Target=[CodeTypeReference: Properties.Resources]]]

11:02:19.355 [1] DEBUG - -> Decoded resource: In: C:\Users\xwizard\Documents\Visual Studio 2015\Projects\inventory\Properties\Resources.resx. Key: rblogo

11:02:19.386 [1] DEBUG - Forms designer: Initializing nested service container of label26 [System.Windows.Forms.Label], Text:  using Reflection

11:02:19.447 [1] DEBUG - Forms designer: DesignerLoader loaded, HasSucceeded=True

11:02:19.448 [1] DEBUG - FormsDesigner loaded, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface

11:02:19.464 [1] DEBUG - IDEContainer: Connecting property grid to service provider

11:02:19.642 [1] INFO - Form Designer: END INITIALIZE

11:02:19.644 [1] DEBUG - FormsDesigner view content activated, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface

11:02:19.645 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent

11:02:19.729 [1] DEBUG - ParseInformationUpdated C:\Users\xwizard\Documents\Visual Studio 2015\Projects\inventory\InventorySystem\frmLogin.cs (updated)

11:02:19.729 [1] DEBUG - ParseInformationUpdated C:\Users\xwizard\Documents\Visual Studio 2015\Projects\inventory\InventorySystem\frmLogin.cs (updated)

11:02:19.996 [1] DEBUG - Folding update ignored; parse information is outdated version

11:02:22.401 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad

11:02:32.350 [1] ERROR - ThreadException caught

--> Exception:

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

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

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

   at System.Drawing.Icon.BmpFrame()

   at System.Drawing.Icon.ToBitmap()

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

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

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

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

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

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

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

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

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

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

11:02:38.833 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard

11:02:45.969 [1] INFO - Saving layout file: C:\Users\xwizard\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml

11:02:45.984 [1] INFO - Loading layout file: C:\Users\xwizard\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml, hideAllLostPads=False

11:02:46.633 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)

11:02:46.633 [1] DEBUG - ChooseLayoutCommand.Run()

11:02:46.633 [1] INFO - Saving layout file: C:\Users\xwizard\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml

11:02:46.670 [1] DEBUG - ActiveContentChanged to ICSharpCode.FormsDesigner.FormsDesignerViewContent

11:02:50.786 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad

11:02:54.862 [1] ERROR - ThreadException caught

--> Exception:

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

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

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

   at System.Drawing.Icon.BmpFrame()

   at System.Drawing.Icon.ToBitmap()

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

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

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

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

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

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

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

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

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

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

11:02:58.679 [1] ERROR - ThreadException caught

--> Exception:

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

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

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

   at System.Drawing.Icon.BmpFrame()

   at System.Drawing.Icon.ToBitmap()

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

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

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

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

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

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

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

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

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

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

11:12:07.316 [1] ERROR - ThreadException caught

--> Exception:

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

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

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

   at System.Drawing.Icon.BmpFrame()

   at System.Drawing.Icon.ToBitmap()

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

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

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

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

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

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

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

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

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

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution C:\Users\xwizard\Documents\Visual Studio 2015\Projects\inventory\InventorySystem.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: InventorySystem]

Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.PropertyPad

How to use ctypes in IronPython ?

$
0
0

Hi all,

I am using sharpdevelop version  4.4.1.9729-7196a277. My IronPython version is 2.7.5.  I have 2 questions to ask.

1. I can't use ctypes in Sharpdevelop. But i can in IronPython console and even in visual studio(2013). When i type "import ctypes" SharpDevelop shows me an intellisence item "_ctypes" and "_ctypes_test".

 This is the worked code in visual studio

sd = ctypes.windll.LoadLibrary("kernel32.dll")
sd.Beep(500,1000)
And this is the code worked in IronPython console.
ctypes.windll.kernel32.Beep(500,1000)
Both were using import ctypes and working perfectly.
But i can't use this method in #develop. 
2. Which latest SharpDevelop version which supports IronPython's latest version aka 2.7.5 ?

Lost information when call a funtion for secondtime

$
0
0

I hav app when i call the first time de function everything is ok but when i call for second time the values y selected gone..

 

here my code

        publicclassCaptRegSeries
        {
            publicComboBoxcmboxVariable;
            publicCheckBoxchkEnabled;
            
            publicCaptRegSeries(ComboBox cmboxvariable,  CheckBox chkenabled)
            {
                this.cmboxVariable = cmboxvariable;
                this.chkEnabled = chkenabled;
            }
        }

 

    public  List<CaptRegSeries> CaptureSeriesIndex = newList<CaptRegSeries>();

 

this for select what combobox seleted you can see is public.

 

after select all i push button Run all is ok bust be take 100 values. and then call ejecutatunning again but this time what i selected is gone CaprureSeriesIdex isnull.

 

/*
 * Created by SharpDevelop.
 * User: ***
 * Date: 6/16/2016
 * Time: 4:27 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Diagnostics;
using System.Windows.Forms.DataVisualization.Charting;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Threading;
using System.Linq;

namespace editorlcc
{
    ///<summary>
    /// Description of Formtunning.
    ///</summary>
    publicpartialclassFormtunning : Form
    {
        privateMainFormmform;
        privatestringPrggen = string.Empty;
        privatestringnextM = string.Empty;
        privateintsamples=0;
        privateDecimalloops=0;
        publicintcharIndexser=0;
        publicintcharIndex=-1;
        
        publicclassregdatos
        {
            publicregdatos( string Regname, string Registro, string Regtipo, bool Actibado, string Descripcion)
            {
                this.regname= Regname;
                this.registro= Registro;
                this.regtipo=Regtipo;
                this.activado=Actibado;
                this.descripcion=Descripcion;
            }
            publicstring regname{ set; get;}
            publicstring registro{ set; get;}
            publicstring regtipo{ set; get;}
            publicbool   activado{ get; set;}
            publicstring descripcion{get; set;}
        }
            
        publicList<regdatos> lstregs = newList<regdatos>();

        publicclassCaptRegSeries
        {
            publicComboBoxcmboxVariable;
            publicCheckBoxchkEnabled;
            
            publicCaptRegSeries(ComboBox cmboxvariable,  CheckBox chkenabled)
            {
                this.cmboxVariable = cmboxvariable;
                this.chkEnabled = chkenabled;
            }
        }
        public  List<CaptRegSeries> CaptureSeriesIndex = newList<CaptRegSeries>();
        
        publicFormtunning(MainForm mform)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            this.mform = mform;
            mform.updatedcharvalues += newMainForm.updatecharseries(updateseriesvalues);
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        
        privatedelegatevoid ObjectDelegate(object obj);
        
        voidFormtunningLoad(object sender, EventArgs e)
        {
            lstregs.Add( newregdatos("V","462","LONG",false,"Temporal Velocity TV"));
            lstregs.Add( newregdatos("DESP","480","LONG",false,"Desired Position TT"));
            lstregs.Add( newregdatos("CARP","486","LONG",false,"Temporal Desired Position TO"));
            lstregs.Add( newregdatos("CURP","494","LONG",false,"Current Real Position TP"));
            int nr;
            cBoxY1.Items.Clear();
            cBoxY2.Items.Clear();
            cBoxY3.Items.Clear();
            cBoxY4.Items.Clear();
            for(nr =0; nr <= lstregs.Count-1;nr++)
            {
                cBoxY1.Items.Add(lstregs[nr].regname);
                cBoxY2.Items.Add(lstregs[nr].regname);
                cBoxY3.Items.Add(lstregs[nr].regname);
                cBoxY4.Items.Add(lstregs[nr].regname);
                  
            }
            
            CaptureSeriesIndex.Add(newCaptRegSeries(this.cBoxY1, this.chkBoxy1 ));
            CaptureSeriesIndex.Add(newCaptRegSeries(this.cBoxY2, this.chkBoxy2 ));
            CaptureSeriesIndex.Add(newCaptRegSeries(this.cBoxY3, this.chkBoxy3 ));
            CaptureSeriesIndex.Add(newCaptRegSeries(this.cBoxY4, this.chkBoxy4 ));
            
            chart1.Series[0].Points.Clear();
            chart1.Series[1].Points.Clear();
            chart1.Series[2].Points.Clear();
            chart1.Series[3].Points.Clear();
            
           
            btnRun.Enabled=false;
            cBoxY1.Enabled=false;
            cBoxY2.Enabled=false;
            cBoxY3.Enabled=false;
            cBoxY4.Enabled=false;
            chkBoxy1.Enabled=false;
            chkBoxy2.Enabled=false;                 
            chkBoxy3.Enabled=false;
            chkBoxy4.Enabled=false;

        }
    
 
        
        privatestring SiDifValues
        {
            get{ returntBSiDif.Text ;}
            set { tBSiDif.Text = value;}
        }

      
        privatestring SIintValues
        {
            get{ returntBSiInt.Text ;}
            set { tBSiInt.Text = value;}
        }        
        privatestring StrockeValues
        {
            get{ returntBStrock.Text ;}
            set { tBStrock.Text = value;}
        }
        
        privatestring SGValues
        {
            get{ returntBSG.Text ;}
            set { tBSG.Text = value;}
        }
        privatestring SPValues
        {
            get{ returntBSpeed.Text ;}
            set { tBSpeed.Text = value;}
        }
      privatestring EncResValues
        {
            get{ returntBEncRes.Text ;}
            set { tBEncRes.Text = value;}
        }    

        privatestring OffSetValues
        {
            get{ returntBOffset.Text ;}
            set { tBOffset.Text = value;}
        }
        
        privatestring ACCValues
        {
            get{ returntBAcce.Text ;}
            set { tBAcce.Text = value;}
        }  
        privatestring SQMaxValues
        {
            get{ returntBSqMax.Text ;}
            set { tBSqMax.Text = value;}
        }  
       privatestring SQMinValues
        {
            get{ returntBSqMin.Text ;}
            set { tBSqMin.Text = value;}
        }       
       
         privatestring ILValues
        {
            get{ returntBILimit.Text ;}
            set { tBILimit.Text = value;}
        }  
        privatestring SEValues
        {
            get{ returntBSe.Text ;}
            set { tBSe.Text = value;}
        } 
        
        privatestring DIValues
        {
            get{ returncBDirec.SelectedText ;}
            set { cBDirec.SelectedItem = value;}
        }   
        
        privatestring PosErValues
        {
            get{ returntBPosEr.Text ;}
            set {tBPosEr.Text = value;}
        }
        
        
        voidBtnCloseClick(object sender, EventArgs e)
        {

             this.mform.port.WriteString("MF");
            System.Threading.Thread.Sleep(40);             
             this.mform.port.WriteString(((char) 27).ToString()+"");
            this.Close();
        }
        
      here i call procedure ejecutatunning. all is good from here.

    
        voidBtnRunClick(object sender, EventArgs e)
        {
    
            if( !mform.port.IsOpen()) return;
            
             if (!this.chkBoxy1.Checked && !this.chkBoxy2.Checked && !this.chkBoxy3.Checked && !this.chkBoxy4.Checked)
             {
                MessageBox.Show("Error: All capture items are disabled. Enable at least one of them.", "Can not start capture", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return;
             }
             
             
             foreach (Series current inthis.chart1.Series)
             {
                current.Points.Clear();
             }
             Globals.CaptureIndex = -1;
             Globals.capturedata = true;

              ejecutetunning();
    
                        
            
        }
        
        privatevoidejecutetunning()
        {
            
            Globals.lastcommand="CD";
            Globals.capturedata=true;
            string RegValFind = string.Empty;
            
            CaptRegSeries CaptRegSeriesItem;
            while (true)
            {
                Globals.CaptureIndex++;
                if (Globals.CaptureIndex< this.CaptureSeriesIndex.Count)
                {
                    CaptRegSeriesItem = this.CaptureSeriesIndex[Globals.CaptureIndex];
                    if (CaptRegSeriesItem.chkEnabled.Checked)
                    {
                        Globals.capturedata = true;
                        break;
                    }
                }
                else
                {
                    Globals.capturedata = false;
                }
            }
            if( Globals.capturedata)
            {
               
              samples=Convert.ToInt32(this.tBSample.Text);
               loops=Convert.ToDecimal(this.tBLoop.Text);
              System.Threading.Thread.Sleep(40);

              mform.port.WriteString("AL" + ((int)(this.samples / this.loops)).ToString() + ",WW422");            
              System.Threading.Thread.Sleep(40);                
              RegValFind =cBoxY1.Text;
              this.Invoke((Action)(() => RegValFind = CaptureSeriesIndex[Globals.CaptureIndex].cmboxVariable.Text));

              string RegNum=GetRegValue(RegValFind);
              mform.port.WriteString("AL" + RegNum + ",WW424");
              System.Threading.Thread.Sleep(60);                
              mform.port.WriteString("AL0"  + ",WW426");    
              System.Threading.Thread.Sleep(60);                
              mform.port.WriteString("MS"  + Convert.ToInt32(this.tBStartMacro.Text).ToString()+"");    
              System.Threading.Thread.Sleep(2000);
              mform.port.WriteString(((char) 27).ToString()+"");
              System.Threading.Thread.Sleep(60);        
              mform.port.WriteString(((char) 27).ToString()+"");            
              System.Threading.Thread.Sleep(60);                      
              mform.port.WriteString("DD100");
              Globals.lastcommand="CD";
              Globals.capturedata=true;              
               
            }
          
        }
         
        privatestringGetRegValue( string RegName)
        {   int i;
            for( i =1 ; i < lstregs.Count; i++)
                if( RegName == lstregs[i].regname )
            {
                returnlstregs[i].registro;
            }
             return"";
        }

        privatevoidupdateseriesvalues(int dato)
        {
        
            this.chart1.Series[Globals.CaptureIndex].Points.AddXY((Double)charIndexser,(double)dato);
            
            charIndexser++;
            if(charIndexser> 99)
            {
        //        charIndex++;
                charIndexser=0;
                ejecutetunning();

call second time but i call from here lost the selection option in combo box.


            }
            return;
        }
        
    
        voidCBoxY1SelectedIndexChanged(object sender, EventArgs e)
        {
           cBoxY2.Items.Remove(cBoxY1.Text);
           cBoxY3.Items.Remove(cBoxY1.Text);
           cBoxY4.Items.Remove(cBoxY1.Text);
           chkBoxy1.Checked=true;
        }
        voidCBoxY2SelectedIndexChanged(object sender, EventArgs e)
        {
           cBoxY3.Items.Remove(cBoxY2.Text);
           cBoxY4.Items.Remove(cBoxY2.Text);
           chkBoxy2.Checked=true;
        }
        voidCBoxY3SelectedIndexChanged(object sender, EventArgs e)
        {
           cBoxY4.Items.Remove(cBoxY3.Text);
           chkBoxy3.Checked=true;
        }

        voidCBoxY4SelectedIndexChanged(object sender, EventArgs e)
        {
           chkBoxy4.Checked=true;
        }
        
        voidBtnSendprgClick(object sender, EventArgs e)
        {

            btnSendprg.Enabled=false;
            if(mform.port.IsOpen())
            {
//               mform.port.DisableHandler();
               Globals.lastcommand="HOMING";
               mform.port.WriteString(((char) 27).ToString()+"");

               mform.port.WriteString("AB");
               System.Threading.Thread.Sleep(100);        
               mform.port.WriteString("MF");
               System.Threading.Thread.Sleep(100);        
               
               Globals.fmresult.richTextBoxEx1.Clear();                                  
               mform.port.WriteString("RM");
               System.Threading.Thread.Sleep(600);               
               mform.port.WriteString("MD0,1VM,MN,SG50,SI50,SD2000,OO0,SV26214,SA5243,SQ15000,IL8000,SE12000,DI1,GO,WA5");
               System.Threading.Thread.Sleep(180);               
               mform.port.WriteString("MD1,RW538,IB-200,NO,MJ2,RP");
               System.Threading.Thread.Sleep(160);                             
               mform.port.WriteString("MD2,DH,DI0,FI,AL0,WL1830");
               System.Threading.Thread.Sleep(160);               
               mform.port.WriteString("MD3,RL448,IC10,ST,MJ5,RL494,IG1000,NO,MJ4,RL1830,IG3000,NO,MJ4,RP");
               System.Threading.Thread.Sleep(160);               
               mform.port.WriteString("MD4,MF,MG\"Index NO Found\",EP");
               System.Threading.Thread.Sleep(160);                  
               mform.port.WriteString("MD5,PM,MN,GH,MG\"HOME READY\"");
               System.Threading.Thread.Sleep(160);               
               string MacFol = Convert.ToInt32(tBStartMacro.Text).ToString();


               long SV=Convert.ToInt32(SPValues);
               SV=(SV*13107200)*100;
               SV=(SV/(Convert.ToInt32(EncResValues)*100000));
               double ACC=Convert.ToInt32(SPValues);
               ACC=(ACC*2621.44)*10;
               ACC=Convert.ToInt32( ACC/Convert.ToInt32(EncResValues));
               Prggen +="MD" +MacFol +","+"CS100,CD100,"+cBAxes.SelectedItem.ToString()+"VM,MN,SV"+SV.ToString()+",SA"+ACC.ToString()+",SQ"+SQMaxValues+",SE"+PosErValues+",MA0"+",GO,WS20";
               mform.port.WriteString(Prggen+"");
               System.Threading.Thread.Sleep(180);               
               Prggen=string.Empty;
            
               MacFol = (Convert.ToInt32(tBStartMacro.Text)+1).ToString();
               nextM = (Convert.ToInt32(tBStartMacro.Text)+2).ToString();
               long PE=Convert.ToInt32(PosErValues);
               PE=(PE/Convert.ToInt32(EncResValues));
               float SQ=Convert.ToInt32(SQMaxValues);
               float ERL=6f/ 30f;
               Int32 SQR=Convert.ToInt32((SQ*ERL));
                        
               Prggen += "MD"+MacFol+",VM,MN,SV"+SV.ToString() ;
               Prggen += ",SA"+ACC.ToString()+",SQ"+SQMinValues+",DI"+cBDirec.SelectedItem.ToString()+",SQ"+SQR.ToString()+",GO,WA100"+",SQ2809";
               mform.port.WriteString(Prggen+"");
               System.Threading.Thread.Sleep(160);               

               Prggen=string.Empty;
            
               MacFol = (Convert.ToInt32(tBStartMacro.Text)+2).ToString();
               nextM = (Convert.ToInt32(tBStartMacro.Text)+3).ToString();
               if( Convert.ToInt32(cBDirec.SelectedItem.ToString()) ==0)
               {
                 Prggen +="MD"+MacFol+",RW538,IG"+Convert.ToInt32(tBPosEr.Text).ToString()+",AB,MJ"+nextM+",RP";
                 mform.port.WriteString(Prggen+"");
                System.Threading.Thread.Sleep(160);               

               }
               else
               {
                 Prggen +="MD"+MacFol+",RW538,IB"+Convert.ToInt32(tBPosEr.Text).ToString()+",AB,MJ"+nextM+",RP";
                 mform.port.WriteString(Prggen+"");            
                System.Threading.Thread.Sleep(160);               

               }

               Prggen=string.Empty;
                        
               MacFol = (Convert.ToInt32(tBStartMacro.Text)+3).ToString();
               nextM = (Convert.ToInt32(tBStartMacro.Text)+4).ToString();
               Prggen+= "MD"+MacFol+",PM,SV"+SV.ToString()+",SA"+ACC.ToString()+",SQ"+SQMaxValues+",GH,WS,EP,DD100";
               mform.port.WriteString(Prggen+"");
               System.Threading.Thread.Sleep(160);               
               Prggen=string.Empty;
               mform.port.WriteString("MS0");

               btnRun.Enabled=true;    
               cBoxY1.Enabled=true;
               cBoxY2.Enabled=true;
               cBoxY3.Enabled=true;
               cBoxY4.Enabled=true;
               chkBoxy1.Enabled=true;
               chkBoxy2.Enabled=true;                 
               chkBoxy3.Enabled=true;
               chkBoxy4.Enabled=true;
               cBoxY1.Focus();
//               mform.port.EnableHandler();
             
            }
        }
        
        voidFormtunningShown(object sender, EventArgs e)
        {
    //     private CaptRegSeries CaptRegSeriesItem;
        }
        
        
    }
}

 

give me idea what i doing wront i when call 4 times ejecutatunning procedure.

 

thanks.

failed to load designer

$
0
0

I am new to sharp develop. I have tried new project and when I click on Design tab, used to get error about missing references. After adding missing references, I am getting following msg

Failed to load designer. Check the source code for syntax errors and check if all references are available.

 

ICSharpCode.FormsDesigner.FormsDesignerLoadException: System.ComponentModel.Design.Serialization.CodeDomSerializerException: The field 'MyServiceName' could not be found on the target object.  Make sure that the field is defined as an instance variable on the target object and has the correct scope.

   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)

   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)

   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)

   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)

   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

 

 

   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadDesigner()

   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadAndDisplayDesigner()

   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadInternal(OpenedFile file, Stream stream)

   at ICSharpCode.SharpDevelop.Workbench.AbstractViewContentHandlingLoadErrors.Load(OpenedFile file, Stream stream)

Version information is as under.

 

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 (India) (en-IN)

Working Set Memory   : 187364kb.

 

I am stuck up and unable to go ahead. 

 

Can anybody help me out of this error?

 

Thanks,

Does not open file dialog

$
0
0

Does not open file dialog in Assembly browser. Windows 7. Reinstall and Repair do not help.

Can I integrate some tools in latest version of Sharpdevelop

$
0
0

Hi All,

I need to know that the following tools can be integrate with latest version of Sharpdevelop or not,

1. StyleCop(If yes which version)

2. Typemock

3. .Net framework unit testing

4. I know this will not work but is there any way we can integrate IBM clearcase with this?

I tried to run t4 template in sharpdevelop for some of my old project made in visual studio but I am getting below error,

1. Type expected and 2. Method must have return type.

This errors are coming from this line in of the .t4 file

#>

<#+

Please help me on this.

Thanks,

Subhajit

Error converting Vb.net MVC project to C#

$
0
0

Hi ,

I am trying to comvert VB.net MVC project to C#.

The whole project seems to be converted fine except for one controller where it throws up below error

 C:\santosh\Work\BHI 3 - Asbestos 2016 c#\BHI.Web\Controllers\AccountController.vb is not converted:
Parser found 1 error(s)
-- line 136 col 28: this symbol not expected in EndOfStmt

 

and that line is

Dim result As Microsoft.AspNet.Identity.IdentityResult = Await UserManager.RemoveLoginAsync(User.Identity.GetUserId(), New UserLoginInfo(loginProvider, providerKey))

Can you please help in resolving this.
Also is there a tool which can convert vbhtml to cshtml ?
Because at the moment it doesn't seem to convert those and I am not sure if the project will work fine when a "*.cs" controller will have "*.vbhtml" view linked to it.Please advise ?
Thanks,
Santosh 

ILSpy batch processing?

$
0
0

I want to process about 100 binary files by ILSpy.

Is it possible to run ILSpy in batch mode from cmd and then redirect output to some file?

 

 

ZipException: Version required to extract this entry not supported (788) and proposed fix

$
0
0

When using SharpZipLib to unzip some apk files like Facebook, it throws an exception "Version required to extract this entry not supported (788)". It is the same problem as described in a previous article "Library cannot extract this entry. Version required is XXX. Possible Fix", but issued by a different function ZipFile.TestLocalHeader.

I have checked the latest release of SharpZipLib, which fixed the issue raised in that article but not this one. So I fixed it by replacing line "short extractVersion = ( short )ReadLEUshort();" with "short extractVersion = ( short )ReadLEUshort() & 0x00ff;" in function TestLocalHeader of ZipFile.cs.

Would you take a look at this issue and see if you will fix it in the next release? Thanks.


adding files with unicode names to zip file [vb 2005]

$
0
0

hi ..

iam trying to zip some document files with arabic names into one zip file ..

the code is working well, but when adding the files to the zip file, it changes the names of the document files to some strange chars,


is there anyway to correct this problem !?

thank you ..


p.s: if i tried the bzip2 code it works well, so it adds the file to the .bz file with the correct file names, but i didn`t manage to rewrite the code to zip more than one file ..anyone can help me please ?:)
 here`s the code :

Dim fsInputFile As FileStream, fsBZ2Archive As FileStream
            fsInputFile = File.OpenRead(txtFileName.Text) ' how to read a second file let`s say it is in txtfilename2.text  to add it to bz?
            fsBZ2Archive = File.Create(txtFileName.Text + ".bz")
            BZip2.Compress(fsInputFile, fsBZ2Archive, 4026)
            fsInputFile.Close()

Shortcut to find namespace

$
0
0

Hi Community.

I have a question. In MS Studio there is a shortcut, where you can find the namespace.

for example:

Directory ... if i press ALT + F10 (i think :D) then he want to resolve the reference and add it automatically.

Is there a function in sharp develop too?

 

Thanks

 

Error and "hang up" when accessing property of class in watch window

$
0
0

When I tried to access a property of type "Form" in debug mode (break point + watch window) I get the following 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      : German (Germany) (de-DE)
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 225400kb
GC Heap Memory       : 40047kb

Unhandled WPF exception
Exception thrown:
Debugger.DebuggerException: Evaluation can not be stopped
   at Debugger.Eval.WaitForResult()
   at Debugger.Eval.InvokeMethod(DebugMethodInfo method, Value thisValue, Value[ args)
   at Debugger.Value.InvokeToString(Int32 maxLength)
   at ICSharpCode.NRefactory.Visitors.ExpressionEvaluator.FormatValue(Value val)
   at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
   at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
   at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
   at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__0(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   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:37:01.856 [1] INFO - Threads refresh
16:37:05.211 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
16:37:07.976 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:37:07.983 [1] DEBUG - Debugger: Callback: EvalComplete
16:37:14.248 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:37:14.248 [1] DEBUG - Debugger: Evaluated: sender.Form in 0 ms total
16:37:16.872 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:37:16.874 [1] DEBUG - Debugger: Callback: EvalComplete
16:37:23.247 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:37:23.247 [1] DEBUG - Debugger: Evaluated: sender.Icon in 0 ms total
16:37:26.799 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:37:26.801 [1] DEBUG - Debugger: Callback: EvalComplete
16:37:50.305 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:37:50.306 [1] DEBUG - Debugger: Callback: EvalComplete
16:37:50.311 [1] DEBUG - Debugger: Evaluated: sender.ToString in 6 ms total
16:38:05.418 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:38:05.418 [1] DEBUG - Debugger: Evaluated: sender.Properties in 0 ms total
16:38:26.570 [1] DEBUG - Debugger: Evaluated: sender in 0 ms total
16:38:26.570 [1] DEBUG - Debugger: Resolving FileWatcher.Watcher
16:38:26.571 [1] DEBUG - Debugger: Evaluated: (FileWatcher.Watcher)sender in 1 ms total
16:38:26.571 [1] DEBUG - Debugger: Evaluated: ((FileWatcher.Watcher)sender) in 1 ms total
16:38:26.609 [1] DEBUG - Debugger: Using backing field for Form FileWatcher.Watcher.get_Form()
16:38:26.624 [1] DEBUG - Debugger: Evaluated: ((FileWatcher.Watcher)sender).Form in 53 ms total
16:38:27.124 [1] DEBUG - Debugger: Aborting eval: Function call: String System.Object.ToString()
16:38:30.135 [1] DEBUG - Debugger: Rude aborting eval: Function call: String System.Object.ToString()

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
ProjectService.OpenSolution: [Solution: FileName=C:\Development\Projects\FileWatcher\FileWatcher.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: FileWatcher]

Error while debugging

$
0
0

 

Developping using SQL Server and SQLite

It happens sometimes after a while even a clean and a rebuild dose not fix it.

 

We don't understand what is causing this and the error message dose not give enough info to find where it is comming from

 

Happens especialy when we start having uncaught exceptions then start to debug that section of code

SharpDevelop Version : 5.1.0.5216-0e58df71

.NET Version         : 4.5.50709

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : English (Canada) (en-CA)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 181712kb

GC Heap Memory       : 52792kb

 

Exception thrown:

System.InvalidOperationException: Both arguments to IsDerivedFrom() must be from the same compilation.

   at ICSharpCode.NRefactory.TypeSystem.TypeSystemExtensions.IsDerivedFrom(ITypeDefinition type, ITypeDefinition baseType)

   at Debugger.Value.CheckObject(Value objectInstance, IMember memberInfo)

   at Debugger.Value.GetFieldValue(Thread evalThread, Value objectInstance, IField fieldInfo)

   at Debugger.Value.GetFieldValue(Thread evalThread, IField fieldInfo)

   at Debugger.MetaData.LocalVariable.<>c__DisplayClass37_1.<AddCapturedLocalVariables>b__0(StackFrame context)

   at Debugger.MetaData.LocalVariable.GetValue(StackFrame context)

   at Debugger.AddIn.TreeModel.ValueNode.<>c__DisplayClass14_3.<GetLocalVariables>b__4()

   at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()

   at System.Action.Invoke()

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

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c.<debugger_ProcessStarted>b__69_1(Object s, ModuleEventArgs e)

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

   at Debugger.Process.OnModuleLoaded(Module module)

   at Debugger.ManagedCallback.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)

   at Debugger.ManagedCallbackSwitch.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)

   at Debugger.ManagedCallbackProxy.<>c__DisplayClass15_0.<LoadModule>b__0()

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

   at Debugger.MTA2STA.PerformCall()

   at Debugger.Process.WaitForPause(TimeSpan timeout)

   at Debugger.Eval.WaitForResult()

   at Debugger.Eval.InvokeMethod(Thread evalThread, IMethod method, Value thisValue, Value[ args)

   at Debugger.Value.InvokeToString(Thread evalThread, Int32 maxLength)

   at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()

   at System.Action.Invoke()

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

   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:

16:05:39.934 [14] DEBUG - Received command ReportEvent

16:05:39.935 [14] DEBUG - Received command ReportEvent

16:05:39.935 [14] DEBUG - Received command ReportEvent

16:05:39.968 [14] DEBUG - Received command ReportEvent

16:05:39.969 [14] DEBUG - Received command ReportEvent

16:05:39.969 [14] DEBUG - Received command ReportEvent

16:05:39.970 [14] DEBUG - Received command ReportEvent

16:05:40.027 [14] DEBUG - Received command ReportEvent

16:05:40.028 [14] DEBUG - Received command ReportEvent

16:05:40.028 [14] DEBUG - Received command BuildDone

16:05:40.028 [14] INFO - Finished building WinPAKTransfer, success=True

16:05:40.028 [14] INFO - Start building 

16:05:40.028 [7] INFO - Finished building , success=True

16:05:40.028 [1] INFO - Debugger Command: Start (withDebugger=True)

16:05:40.029 [1] INFO - Saving layout file: C:\Users\user\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml

16:05:40.030 [1] INFO - Loading layout file: C:\Users\user\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False

16:05:40.105 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)

16:05:40.105 [1] DEBUG - ChooseLayoutCommand.Run()

16:05:40.105 [1] INFO - Saving layout file: C:\Users\user\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml

16:05:41.700 [1] INFO - Open file c:\Development\Bitbucket\winpaktransfer\WinpakTransfer\WinPAKTransfer.cs

16:05:41.731 [1] INFO - Evaluated node 'winpakCardList' in 2 ms

16:05:41.734 [1] INFO - Evaluated node 'localData' in 2 ms

16:05:41.737 [1] INFO - Evaluated node 'lastCard' in 2 ms

16:05:41.739 [1] INFO - Evaluated node 'winpakData' in 2 ms

16:05:41.815 [1] ERROR - ThreadException caught

--> Exception:

System.InvalidOperationException: Both arguments to IsDerivedFrom() must be from the same compilation.

   at ICSharpCode.NRefactory.TypeSystem.TypeSystemExtensions.IsDerivedFrom(ITypeDefinition type, ITypeDefinition baseType)

   at Debugger.Value.CheckObject(Value objectInstance, IMember memberInfo)

   at Debugger.Value.GetFieldValue(Thread evalThread, Value objectInstance, IField fieldInfo)

   at Debugger.Value.GetFieldValue(Thread evalThread, IField fieldInfo)

   at Debugger.MetaData.LocalVariable.<>c__DisplayClass37_1.<AddCapturedLocalVariables>b__0(StackFrame context)

   at Debugger.MetaData.LocalVariable.GetValue(StackFrame context)

   at Debugger.AddIn.TreeModel.ValueNode.<>c__DisplayClass14_3.<GetLocalVariables>b__4()

   at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()

   at System.Action.Invoke()

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

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<>c.<debugger_ProcessStarted>b__69_1(Object s, ModuleEventArgs e)

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

   at Debugger.Process.OnModuleLoaded(Module module)

   at Debugger.ManagedCallback.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)

   at Debugger.ManagedCallbackSwitch.LoadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)

   at Debugger.ManagedCallbackProxy.<>c__DisplayClass15_0.<LoadModule>b__0()

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

   at Debugger.MTA2STA.PerformCall()

   at Debugger.Process.WaitForPause(TimeSpan timeout)

   at Debugger.Eval.WaitForResult()

   at Debugger.Eval.InvokeMethod(Thread evalThread, IMethod method, Value thisValue, Value[ args)

   at Debugger.Value.InvokeToString(Thread evalThread, Int32 maxLength)

   at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()

   at System.Action.Invoke()

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

   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:\Development\Bitbucket\winpaktransfer\WinpakTransfer.sln with 3 projects]

ProjectService.CurrentProject: [CSharpProject: WinPAKTransfer]

Workbench.ActiveContent: [AvalonEditViewContent c:\Development\Bitbucket\winpaktransfer\WinpakTransfer\WinPAKTransfer.cs]

Auto-indentation/completion for short property declarations?

$
0
0

Hello team,

I wonder if it might be possible to enable not having auto-indentation when using the short-form property declarations in VB.NET, such as:

Public Property Foo() As String

When there is no code and "End Property" construct, Visual Studio does not indent that code, leaving it as a complete default getter/setter. In SharpDevelop, this will confuse the auto-indentation because it expects an "End Property" and does not account for the short-form declaration.

Viewing all 1764 articles
Browse latest View live