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

WinForms editor and unmanaged dll

$
0
0

Hi,

whenever I add an unmanaged DLL reference to my WinForms C# project I'm getting errors when trying to add new controls to my application form. I'm using SharpDevelop 4.1.0.8000 (but earlier versions are affected as well.

Here is a description on how to reproduce the issue:

1. Create a new .NET 3.5 C# windows application project.

2. Change the C# compiler to version 3.0 otherwise you'll get errors about "tracker.exe" cannot be found.

3. Add a reference to an unmanaged DLL to the project, e.g. kernel32.dll.

4. Add a button to the application form.

5. Compile & run the project to verify that everything works, then close the running project.

6. Exit SharpDevelop

7. Start SharpDevelop and open the project

8. Go to the WinForms editor tab and try to add another component, e.g. a checkbox

9. You should now see an error message like this:

"System.BadImageFormatException: Could not load file or assembly 'kernel32.dll' or one of its dependencies. The module was expected to contain an assembly manifest. ..."

10. After clicking on "Ok" to close the error message dialog the forms editor hangs in an endless loop, showing a "work in progress" mouse pointer. Clicking the left mouse button on the form just adds another checkbox and then showing the error message again, and so on, and so on.

The only way to get back to a sane state is to close SharpDevelop saving the changes and restart it again.

Best regards,

Bernd.

 

 


TableLayout Changes Size When Moving Between Code and Design View

$
0
0

Hi,

I'm using SD Version:4.0.0 Build: 7070

.net version 3.x and 4.x (Not tried with anything below)

I've had this problem when I was using SD 3.x previously as well.

When create a tablelayout and have 1 row as fixed and the other as autosize (Or percentage) then when I flip between code view and design view the fixed size row will just keeps getting smaller and smaller for no reason at all.

I've seen a few other people with this issue but I've not seen a solution yet.

I think this also happens not just with tablelayout but pretty much any kind of form design I do. It's very frustrating having to keep going in and changing things because they automatically change size for no reason.

Can anyone spread any light on this at all?

Thanks

Suggestion & Help

$
0
0

Hello, my name is Luís Fernandes - aka Apidcloud - and I'd like to talk you about a certain subject.

Me and a friend of mine are developing a 2D Game Engine called Gibbo 2D (we released its beta in 30th July but it's perfectly capable of developing any kind of game already). 

Please refer to the following links in order to see some of its features and mainly screenshots:

- Official website:

http://dragon-scale-studios.com/gibbo/

- Updates Thread in the Forum:

http://dragon-scale-studios.com/gibbo/forum/index.php/topic,42.msg41021.html#msg41021

- Facebook page:

https://www.facebook.com/Gibbo2D

- Features page:

http://dragon-scale-studios.com/gibbo/index.php/main/display/features

- Editor's Screenshot (outdated):

http://dragon-scale-studios.com/imaga/uploads/cbc7bdf4a568c479f4f1ac6cf0ed0ead.png

- A small teaser:

https://www.dropbox.com/s/imps8zh9vzjgmg5/SpaceRidge.mp4

 

As you might imagine, it supports scripts (currently only on C#, but we're aware of your conversion tool - can be pretty handy to add more languages). Scripts rely on editors and besides currently supporting Visual Studio 2010 and 2012, we've also released a preview of a built-in script editor. Nonetheless, we'd love to implement Sharp Develop. That is, say you double click in a script (in the project's explorer), sharp develop would open a tab with that script, and so on (there's a .sln file).

Furthermore, if we're able to implement your editor, we'd like to make it the default one since its so lightweight and so full of astonishing features. We could also enable SD download along with  the Engine, which would be great.

 

I'm here to ask your help (we need to know how to open tabs in Sharp Develop externally - for Visual studio we use its DTE - and permission to do it. Besides giving you credits, you'd actually gather more people to use your editor (which is really good) and the potential of this Engine is really and literally immense. We are using Monogame which supports complete 3D rendering, with hardware acceleration using OpenGL or direct3D. Some of the recent released updates: particles and physics systems.

Gibbo is capable of using over 1 billion particles with no frame-drop (60fps) in a simple dual core laptop - you can check the screenshots or actually try it by downloading the Engine.

 

We've tried to contact you using the contact section in the website, but since there wasn't any reply, we decided to try using the forum instead.

 

What do you think?

 

Regards

Unhandled WPF exception

$
0
0

SharpDevelop Version : 4.3.1.9430-406354be

.NET Version         : 4.0.30319.296

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : Russian (Russia) (ru-RU)

Current UI language  : en

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 99436kb

GC Heap Memory       : 6802kb

 

Exception thrown:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

   at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)

   at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[ typeInstantiationContext, Int32 typeInstCount, IntPtr[ methodInstantiationContext, Int32 methodInstCount)

   at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[ typeInstantiationContext, RuntimeTypeHandle[ methodInstantiationContext)

   at System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord)

   at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget)

   at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target)

   at System.Reflection.RuntimeAssembly.GetCustomAttributesData()

   at System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target)

   at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation)

   at System.Resources.ResourceManager.CommonSatelliteAssemblyInit()

   at System.Resources.ResourceManager..ctor(String baseName, Assembly assembly)

   at MS.Internal.Resources.ResourceManagerWrapper.get_ResourceManager()

   at MS.Internal.Resources.ResourceManagerWrapper.GetStream(String name)

   at MS.Internal.AppModel.ResourcePart.EnsureResourceLocationSet()

   at MS.Internal.AppModel.ResourcePart.GetContentTypeCore()

   at System.IO.Packaging.PackagePart.get_ContentType()

   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   at KeyShortcutEditorAddin.EditShortcutsuPanel.InitializeComponent()

   at KeyShortcutEditorAddin.EditShortcutsuPanel..ctor()

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

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at ICSharpCode.SharpDevelop.DefaultOptionPanelDescriptor.get_OptionPanel()

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.get_Content()

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.SelectNode(OptionPanelNode node)

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.set_IsSelected(Boolean value)

 

---- Recent log messages:

17:33:58.227 [1] INFO - Screen {X=0,Y=0,Width=1600,Height=900}: Validating {X=0,Y=0,Width=1620,Height=920}; intersection {X=0,Y=0,Width=1600,Height=860}

17:33:58.251 [1] INFO - dockingManager_Loaded

17:33:58.252 [1] INFO - Loading layout file: T:\Portable Apps\#develop\bin\..\Settings\layouts\Default.xml, hideAllLostPads=False

17:33:58.291 [1] DEBUG - ActiveContentChanged to 

17:33:58.308 [1] DEBUG - ActiveWorkbenchWindowChanged to 

17:33:58.308 [1] DEBUG - ActiveViewContentChanged to 

17:33:58.320 [1] DEBUG - ActiveContentChanged to ICSharpCode.StartPage.StartPageViewContent

17:33:58.320 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Start Page]

17:33:58.320 [1] DEBUG - NavigationService

ActiveViewContent: Start Page

         Subview: TabPageText

17:33:58.320 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.StartPage.StartPageViewContent

17:33:58.356 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.PropertyPad...

17:33:58.415 [1] DEBUG - PropertyPad created

17:33:58.421 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Project.ProjectBrowserPad...

17:33:58.442 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.ErrorListPad...

17:34:02.856 [1] DEBUG - Activated feature 'ICSharpCode.AddInManager.ShowCommand', activation=MainMenu

17:34:02.859 [1] INFO - Loading addin AddInManager

17:34:02.880 [1] INFO - Number of screens: 1

17:34:02.880 [1] INFO - Screen {X=0,Y=0,Width=1600,Height=900}: Validating {X=590,Y=161,Width=476,Height=424}; intersection {X=590,Y=161,Width=476,Height=424}

17:34:07.269 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Commands.OptionsCommand', activation=MainMenu

17:34:07.277 [1] WARN - Codon (TextEditorOptions) specified in the insertbefore of the [Codon: name = OptionPanel, id = Profiling, addIn=T:\Portable Apps\#develop\bin\..\AddIns\Misc\Profiler\ICSharpCode.Profiler.AddIn.addin] codon does not exist!

17:34:07.489 [1] INFO - Number of screens: 1

17:34:07.489 [1] INFO - Screen {X=0,Y=0,Width=1600,Height=900}: Validating {X=800,Y=0,Width=800,Height=860}; intersection {X=800,Y=0,Width=800,Height=860}

17:34:09.682 [1] INFO - Loading addin KeyShortcutEditorAddin

17:34:09.820 [1] ERROR - 

--> Exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

   at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)

   at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[ typeInstantiationContext, Int32 typeInstCount, IntPtr[ methodInstantiationContext, Int32 methodInstCount)

   at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[ typeInstantiationContext, RuntimeTypeHandle[ methodInstantiationContext)

   at System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord)

   at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget)

   at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target)

   at System.Reflection.RuntimeAssembly.GetCustomAttributesData()

   at System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target)

   at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation)

   at System.Resources.ResourceManager.CommonSatelliteAssemblyInit()

   at System.Resources.ResourceManager..ctor(String baseName, Assembly assembly)

   at MS.Internal.Resources.ResourceManagerWrapper.get_ResourceManager()

   at MS.Internal.Resources.ResourceManagerWrapper.GetStream(String name)

   at MS.Internal.AppModel.ResourcePart.EnsureResourceLocationSet()

   at MS.Internal.AppModel.ResourcePart.GetContentTypeCore()

   at System.IO.Packaging.PackagePart.get_ContentType()

   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   at KeyShortcutEditorAddin.EditShortcutsuPanel.InitializeComponent()

   at KeyShortcutEditorAddin.EditShortcutsuPanel..ctor()

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

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at ICSharpCode.SharpDevelop.DefaultOptionPanelDescriptor.get_OptionPanel()

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.get_Content()

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.SelectNode(OptionPanelNode node)

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.set_IsSelected(Boolean value)

17:34:10.455 [1] WARN - Stack trace of last exception log:

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

   at System.Environment.get_StackTrace()

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

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

   at ICSharpCode.SharpDevelop.Gui.TreeViewOptionsDialog.OptionPanelNode.set_IsSelected(Boolean value)

   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[ arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[ arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ parameters, CultureInfo culture)

   at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[ index, CultureInfo culture)

   at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[ index)

   at MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)

   at MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)

   at System.Windows.Data.BindingExpression.UpdateSource(Object value)

   at System.Windows.Data.BindingExpressionBase.UpdateValue()

   at System.Windows.Data.BindingExpression.Update(Boolean synchronous)

   at System.Windows.Data.BindingExpressionBase.Dirty()

   at System.Windows.Data.BindingExpression.SetValue(DependencyObject d, DependencyProperty dp, Object value)

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

   at System.Windows.Controls.TreeView.ChangeSelection(Object data, TreeViewItem container, Boolean selected)

   at System.Windows.Controls.TreeViewItem.Select(Boolean selected)

   at System.Windows.Controls.TreeViewItem.OnGotFocus(RoutedEventArgs e)

   at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

   at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)

   at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

   at System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)

   at System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)

   at System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)

   at System.Windows.Input.KeyboardFocusChangedEventArgs.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.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)

   at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)

   at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)

   at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)

   at System.Windows.UIElement.Focus()

   at System.Windows.Controls.TreeViewItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)

   at System.Windows.UIElement.OnMouseLeftButtonDownThunk(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.OnMouseDownThunk(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

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

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

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

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

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

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

   at System.Windows.Window.Show()

   at System.Windows.Window.ShowDialog()

   at ICSharpCode.SharpDevelop.Commands.OptionsCommand.ShowTreeOptions(String dialogTitle, AddInTreeNode node)

   at ICSharpCode.SharpDevelop.Commands.OptionsCommand.Run()

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

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

   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

   at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()

   at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()

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

 

---- Post-error application state information:

Installed 3rd party AddIns: [AStyleAddin 3.1.4054.23192], [KeyShortcutEditorAddin 0.0.0.0], [RemoveUnusedRef 1.0.0]

Workbench.ActiveContent: ICSharpCode.StartPage.StartPageViewContent

ProjectService.OpenSolution: <null>

ProjectService.CurrentProject: <null>

Unhandled exception uppon startup in SD

$
0
0
Hello,
i installed SD and, after trying to do some changes to the workbench, i may have dragged something to a wrong place because everytime i start SD again, i get an unhandled exception as shown below. Even after uninstalling and installing SD again, the problem persists.
Do anybody know how to "reset" the workbench to a default state so that i can use SD again? Regards.
SharpDevelop Version : 4.3.0.9390-e0365b10
.NET Version         : 4.0.30319.1008
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : Portuguese (Brazil) (pt-BR)
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 57752kb
GC Heap Memory       : 7495kb
Exception thrown:
System.InvalidOperationException: UIElement.Measure(availableSize) cannot be called with NaN size.
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at AvalonDock.Pane.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at AvalonDock.DockablePane.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at MS.Internal.Controls.InnerItemCollectionView._RemoveAt(Int32 index, Int32 indexR, Object item)
   at MS.Internal.Controls.InnerItemCollectionView.Remove(Object item)
   at System.Windows.Controls.ItemCollection.Remove(Object removeItem)
   at AvalonDock.Pane.RemoveContent(ManagedContent contentToRemove)
   at AvalonDock.Pane.RemoveContent(Int32 index)
   at AvalonDock.DockablePane.RemoveContent(Int32 index)
   at AvalonDock.ManagedContent.DetachFromContainerPane()
   at AvalonDock.DockingManager.Hide(DockableContent content)
   at AvalonDock.DockingManager.RestoreLayout(XmlDocument doc)
   at AvalonDock.DockingManager.RestoreLayout(String filename)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadLayout(String fileName, Boolean hideAllLostPads)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.TryLoadConfiguration()
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()
---- Recent log messages:
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.SharpDevelop.Gui.Pads.WatchPad at Bottom, Hidden
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.SharpDevelop.Gui.Pads.ObjectGraphPad at Bottom, Hidden
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.SharpDevelop.Gui.Pads.ParallelStackPad at Bottom, Hidden
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.Data.Addin.Pad.DatabasesTreeViewPad at Right, Hidden
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.XmlEditor.XPathQueryPad at Bottom, Hidden
09:26:12.416 [1] DEBUG - Add pad MSHelpSystem.Controls.Help3TocPad at Right, Hidden
09:26:12.416 [1] DEBUG - Add pad MSHelpSystem.Controls.Help3SearchPad at Right, Hidden
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.PackageManagement.Scripting.PackageManagementConsolePad at Bottom, Hidden
09:26:12.416 [1] DEBUG - Add pad ICSharpCode.Reports.Addin.ReportExplorerPad at Right, Hidden
09:26:12.416 [1] INFO - Starting workbench...
09:26:12.416 [1] DEBUG - NavigationService -- suspend logging
09:26:12.416 [1] INFO - Loading addin Start Page
09:26:12.446 [1] DEBUG - ActiveContentChanged to ICSharpCode.StartPage.StartPageViewContent
09:26:12.446 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Start Page]
09:26:12.446 [1] DEBUG - NavigationService
ActiveViewContent: Start Page
         Subview: TabPageText
09:26:12.446 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.StartPage.StartPageViewContent
09:26:12.446 [1] DEBUG - NavigationService -- resume logging
09:26:12.446 [5] DEBUG - RecentProjectsControl: Looking up path 'C:\Users\Ramiro\Documents\SharpDevelop Projects\teste\teste.sln'
09:26:12.606 [1] INFO - Number of screens: 1
09:26:12.606 [1] INFO - Screen {X=0,Y=0,Width=1366,Height=768}: Validating {X=10,Y=10,Width=750,Height=550}; intersection {X=10,Y=10,Width=750,Height=550}
09:26:12.626 [1] INFO - dockingManager_Loaded
09:26:12.626 [1] INFO - Loading layout file: C:\Users\Ramiro\AppData\Roaming\ICSharpCode/SharpDevelop4\layouts\Default.xml, hideAllLostPads=False
09:26:12.636 [1] DEBUG - ActiveContentChanged to 
09:26:12.656 [1] ERROR - 
--> Exception:
System.InvalidOperationException: UIElement.Measure(availableSize) cannot be called with NaN size.
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at AvalonDock.ResizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at AvalonDock.Pane.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at AvalonDock.DockablePane.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at MS.Internal.Controls.InnerItemCollectionView._RemoveAt(Int32 index, Int32 indexR, Object item)
   at MS.Internal.Controls.InnerItemCollectionView.Remove(Object item)
   at System.Windows.Controls.ItemCollection.Remove(Object removeItem)
   at AvalonDock.Pane.RemoveContent(ManagedContent contentToRemove)
   at AvalonDock.Pane.RemoveContent(Int32 index)
   at AvalonDock.DockablePane.RemoveContent(Int32 index)
   at AvalonDock.ManagedContent.DetachFromContainerPane()
   at AvalonDock.DockingManager.Hide(DockableContent content)
   at AvalonDock.DockingManager.RestoreLayout(XmlDocument doc)
   at AvalonDock.DockingManager.RestoreLayout(String filename)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadLayout(String fileName, Boolean hideAllLostPads)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.TryLoadConfiguration()
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()
09:26:12.656 [1] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.Core.MessageService.ShowException(Exception ex, String message)
   at ICSharpCode.Core.MessageService.ShowException(Exception ex)
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.LoadConfiguration()
   at ICSharpCode.SharpDevelop.Gui.AvalonDockLayout.dockingManager_Loaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Application.<RunInternal>b__f(Object obj)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)
   at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)
   at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()
   at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()
   at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)
---- Post-error application state information:
Installed 3rd party AddIns: 
Workbench.ActiveContent: <null>
ProjectService.OpenSolution: <null>
ProjectService.CurrentProject: <null>

app.config file not generated correctly for empty setting values

$
0
0

Hi, I've just came across this bug: If you create a Settings.settings file and create a new setting value here, leaving default value blank (empty string), the value recieved by the application at runtime won't be empty at all: it will contain some whitespace. I've discovered that it's caused by a incorrectly generated app.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <section name="Test.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <userSettings>
        <Test.Properties.Settings>
            <setting name="empty" serializeAs="String"><!-- Should be <value></value> -->
                <value>
                </value>
            </setting>
        </Test.Properties.Settings>
    </userSettings>
</configuration>

Steps to reproduce:
1. Create a new Windows Forms project
2. Ensure there are no settings or app.config files
3. Use Designer to add a textBox to the form, call it "textBox1" and make it multiline
4. Add a Load event handler to the form and change form code to this:
using System;
using System.Windows.Forms;

namespace Test
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }
        
        void MainFormLoad(object sender, EventArgs e)
        {
            textBox1.Text = Properties.Settings.Default.empty;
        }
    }
}

5. Create a new settings file, call it "Settings.settings"
6. Create a new entry, call it "empty", set type to string and ensure that the value is blank (empty string)
7. Run the application and check the textBox content (it should be empty, but it won't be)

I use SharpDevelop version 4.3.1.9430-406354be. I hope I provided all the needed information...
(please tell me about any mistakes in my English, I'll try to avoid them next time :-))

Documentation Hint Format

$
0
0

Hello guys,

I'm really new here, I tried some searches on this forum before began this post and all are unsuccessful. So I wanna know if already have any way to format Doc Hint.

I want to Its look like:NetBeans Doc Hint Example

If anyone know how to at least make some itens on doc hint be bold without go too deep in SharpDevelop code I will like to know.

 

FindMimeType Exception

$
0
0

If you try to open a text file in which the last character is also the first non-standard ASCII code, a COMException will be generated by method FindMimeType in MimeTypeDetection class.

For example you can create a new text file containing only the string "1°" and then try to open it.

I resolved in this way:

default:
if (IsUTF8(stream, (byte)firstByte, (byte)secondByte)) {
stream.Position = 0;
reader = new StreamReader(stream, Encoding.UTF8);
break;
} else {
byte[ buffer = new byte[BUFFER_SIZE];
int length = stream.Read(buffer, 0, BUFFER_SIZE);
if (length > 0)
return FindMimeType(buffer, 0, length);
else
return Text;

}


AvalonDock: Can't change focus between WPF and WinForms panes

$
0
0

I've been developing an editor for a custom scripting language and I'm having a problem with AvalonDock v2 when I have two panes open. The problem arises when I have an AvalonEdit (WPF control) loaded in one pane and a DataGridView (WinForms control) loaded in the other. If I click on a cell in the DataGridView to edit it and then try to click on the AvalonEdit text document it won't set focus to the text document. In this case I am unable to type in the text document.

This doesn't happen if I have only a single pane open or if I have two AvalonEdit documents or two DataGridView controls on two panes.

Here is how the application is laid out: This is a Windows Forms application with an ElementHost to contain the AvalonDock control. I support two document types for this application, the AvalonEdit control as the text editor and a DataGridView as a RESX file editor. These are contained in a LayoutDocument. The AvalonEdit control works flawlessly, but I had some difficulty getting the DataGridView control to show up.

Originally I just set the Content property of the LayoutDocument to the DataGridView, but that just showed a blank tab. I then changed the Content to a WindowsFormsHost and set it's child property to the DataGridView. This worked and I was able to see and interact with the DataGridView. But I'm stuck with this weird focus issue.

I did a little testing and found the same behavior with a WPF and WinForms control in two panes. I used a WPF Textbox and a WinForms Textbox and saw the same thing.

Can anyone help me? I'm coming to the realization that I'll probably have to convert the application to WPF, but I thought I'd take one more stab at it.

Thanks, Rich

System.ArgumentException occurred. Message=1 is not a supported code page.

$
0
0

Hi,

we are using sharpZipLib in our application and getting below mentioned exception when set system language to "Hindi(India)".

Your help is really appreciated.

Thanks :)

Here is the stack trace for the same:

System.ArgumentException occurred
  Message=1 is not a supported code page.
Parameter name: codepage
  Source=mscorlib
  ParamName=codepage
  StackTrace:
       at System.Text.Encoding.GetEncoding(Int32 codepage)
       at ICSharpCode.SharpZipLib.Zip.ZipConstants.ConvertToString(Byte[ data, Int32 count)
       at ICSharpCode.SharpZipLib.Zip.ZipConstants.ConvertToStringExt(Int32 flags, Byte[ data, Int32 count)
       at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries()
       at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(String name)
       at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(String zipFileName, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime)
       at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(String zipFileName, String targetDirectory, String fileFilter)

 

At just 23 Brie Larson the star of Short Term twelve

$
0
0

SharpDevelop 4.3.3 Service Release

$
0
0

Release Information

This release adds support for NuGet 2.7, including package restore. It additionally brings support for the IsInDesignMode property to the WPF Designer, as well as further smaller fixes to improve stability and performance in various areas.

Downloads

SharpDevelop 4.3.3

Support

Our primary means of support is via ourWeb-based forum (please do not email team members directly unless they advise you to do so in the forum)

Using standalone code completion for my custom application

$
0
0

Hello!

As described in this post, I'm trying to use some functionalities for my custom application.

Here are some fragments of code that I have written in order to show completion list:

  • Initialization:

           var core = new CoreStartup("MyApp");
           core.ConfigureExternalAddIns(@"C:\Program Files (x86)\SharpDevelop\4.2\AddIns\ICSharpCode.SharpDevelop.addin"); // default IDE addins
           core.StartCoreServices();

 

  •  TextEditor creation:

 

var service = new AvalonEditorControlService();

           object control = null;
           service.CreateEditor(out control);
           textEditor = (SharpDevelopTextEditor)control;
           textEditor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinitionByExtension(".cs");
           CodeCompletionEditorAdapter completionAdapter = new MyCustomCodeCompletionEditorAdapter(textEditor); // just overrides FileName returning "temp.cs"
           textEditor.TextArea.TextView.Services.AddService(typeof(ITextEditor), completionAdapter);

  • Completion Trigger (in some button or anything else) 

 

            ITextEditor editor = (ITextEditor)textEditor.TextArea.GetService(typeof(ITextEditor));
            new DotCodeCompletionItemProvider().ShowCompletion(editor);

 

  • I have also modified this method to public and called it on the initialization
    public static void InitializeParserService

 

When I debug ParserService.cs(line 212 - "foreach (ParserDescriptor descriptor in parserDescriptors) {", parserDescriptors is empty, and it causes "CodeCompletionItemProvider.GetExpressionFromOffset" to return ExpressionResult.Empty, empty intellisense items and no intellisense =/

In my project there is no concept of project or solutions, but I do have my imported dlls and scoped variables.

Are there any guidelines that would help me in this task?

Thanks for the help and for the great work on this library! 

SharpDevelop 5: Error when opening solution

$
0
0

I get this error when opening one of my solutions. Another solution, the error doesn't happen until i actually open one of the files.

Both solutions open fine in SharpDevelop 4.3.

In SharpDevelopSolutionSnapshot.cs, line 20, I changed

            if (projects != null) {
                foreach (IProject project in projects) {
                    var pc = project.ProjectContent;
                    if (pc != null)
                        projectContentSnapshots.Add(project, pc);
                }
            }

to

            if (projects != null) {
                foreach (IProject project in projects) {
                    var pc = project.ProjectContent;
                    if (pc != null && !projectContentSnapshots.ContainsKey(project))
                        projectContentSnapshots.Add(project, pc);
                }
            }

and it seems to work fine, but wasn't able to track down why it was adding the project twice.

SharpDevelop Version : 5.0.0.3247-newNR-alpha-8d5347a9
.NET Version         : 4.0.30319.18052
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 460008kb
GC Heap Memory       : 211575kb

Unhandled WPF exception
Exception thrown:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at ICSharpCode.SharpDevelop.Parser.SharpDevelopSolutionSnapshot..ctor(IEnumerable`1 projects)
   at ICSharpCode.SharpDevelop.Parser.ParserService.GetCurrentSolutionSnapshot()
   at ICSharpCode.SharpDevelop.Parser.ParserService.GetCompilationForFile(FileName fileName)
   at ICSharpCode.AvalonEdit.AddIn.QuickClassBrowser.DoUpdate(IUnresolvedFile unresolvedFile)
   at ICSharpCode.AvalonEdit.AddIn.QuickClassBrowser.ComboBox_DropDownClosed(Object sender, EventArgs e)
   at ICSharpCode.AvalonEdit.AddIn.QuickClassBrowser.Update(IUnresolvedFile compilationUnit)
   at ICSharpCode.AvalonEdit.AddIn.CodeEditor.ParseInformationUpdated(ParseInformation parseInfo)
   at ICSharpCode.AvalonEdit.AddIn.CodeEditor.<ParserServiceParseInformationUpdated>b__4()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Color resolved Class names

$
0
0

Hi,

I am using Sharp Develop 4.3. Is there a way to color resolved Class names in the c# text editor?

Thanks


SharpDevelop Reports, una solución o un problema para bases de datos MySQL y PostgreSQL.

$
0
0

 

Con el paso del tiempo y en mi corta experiencia como desarrollador de sistemas, he utilizado múltiples herramientas de desarrollo(NetBeans, Eclipse, Bluefish, NuSphere, Quanta Plus, Microsoft Visual Studio, SharpDevelop, entre otros) y múltiple lenguajes de programación tales como C++, C#, VB, Scheme, Java, Python, Prolog, Php(mi preferido).

Un amigo del hermoso país de Argentina(saludos Fernando Piazza), me solicito que lo orientara un poco sobre la utilización de SharpDevelop en proyectos de gran peso, por lo que comento:

 

Como todos sabemos SharpDevelop(SD) es un IDE open source y libre para desarrollar en lenguajes de programación tales como C#, Visual Basic .NET y Boo. SD se puede ver como la competencia directa del famoso y también muy utilizado Microsoft Visual Studio.

 

Muchos desarrolladores al igual que yo(de la ola Open, Free, o como quieran llamarlo), decidimos la utilización de este IDE, claro sin mencionar los demás beneficios que nos trae el adquirir un software libre.

 

Yo he trabajado con SD a pequeña y gran escala, es decir, desde sistemas simples de transacciones, hasta sistemas para grandes empresas los cuales manejan toda la producción y gestión de las mismas.

SD no tiene nada que envidiarle a MVS, su agilidad e integración con otros componentes lo hacen aun mas llamativo para su utilización, claro sin mencionar el costo del Dark Microsoft(jejeje no podía quedarme sin decirlo).

Yo por ejemplo he utilizado SD integrado con los famosos Dev Components y con la Krypton Suite Components y han trabajado de la manera mejor esperada.

Por todo lo anterior no tendría ningún problema de usar y recomendar a SD para cualquier tipo de proyecto.

 

SharpDevelop y Talón de Aquiles llamado SD Reports

Lo llame el Talón de Aquiles, pero en realidad no es igual, ya que Aquiles no podía hacer nada para reparar su punto débil, sin embargo se que con el paso del tiempo SD y todos los desarrolladores interesados en el proyecto lo haran.

A mi parecer los Reportes en SD aun no están como para una utilización a gran escala, esto debido a que los SDR, están pensados, por ser .NET, en"bases de datos" MS SQL Server, y no en bases tipo MySQL(mi preferida) y PostgreSQL, por lo que la generación de reportes en este tipo de bases resulta un verdadero dolor de cabeza.

XSL, XML, Conexiones por aquí, por allá, .......... y al final ni siquiera obtenemos lo que buscábamos.

 

Una pequeña solución:

Esta solución sirve para reportes de tipo NO TABLA o LISTA, es decir solo muestra de información.

Se crea un reporte desde el asistente:

Ver PDF:http://www.mediafire.com/?m0g14s1gpnz2s9g

Una vez creado el reporte se crea una clase controladora en le formulario en donde esta el preview

por ejemplo frmReportes el cual contendra:

using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.Collections;
using System.ComponentModel;
using System.IO;
using System.Text;
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
using System.Data;
using OpenOfficeLib.Printer;//NO ES NECESARIA PARA ESTE EJEMPLO


namespace EtipresInterface.Reportes
{

    public partial class frmReportes : Form
    {
               
        public frmReportes()
        {
            InitializeComponent();   
        }
       
        public void reporteReport1(string parametro1, string parametro2, ....., string parametroN)
        {
            this.Text = "NOMBRE DEL FORMULARIO <REPORTE>";
           
           
            //Selecciono la plantilla del reporte
            ReportModel model =  ReportEngine.LoadReportModel("Reportes/Report1.srd");           
           
            //Encabezado de página del reporte
            BaseImageItem imageH = (BaseImageItem)model.ReportHeader.Items.Find("imgHeader");
            imageH.Image = Image.FromFile(@"Reportes\imagenes\imagen.jpg");
           
            //Cuerpo del reporte           
            BaseTextItem item = (BaseTextItem)model.DetailSection.Items.Find("pParameto1");//Nombre del campo del reporte  Report1.srd
            item.Text = parametro1;
           
            item = (BaseTextItem)model.DetailSection.Items.Find("pParameto2");//Nombre del campo del reporte  Report1.srd
            item.Text = parametro2;
           
            ...........
           
            item = (BaseTextItem)model.DetailSection.Items.Find("pParametoN");//Nombre del campo del reporte  Report1.srd
            item.Text = parametroN;       
           
            //Carga todos los paraetros al reporte       
           
            previewControl1.RunReport(model, new ReportParameters());
        }
    }
}

Ok una vez creado todo, al presionar un boton de otro form, se llama al reporte por ejemplo:

private void Boton_Click(object sender, System.EventArgs e)
{
    this.generaReporte();
}


public void generaReporte()
{
    try
    {
        frmReportes rp = new frmReportes();
       
        rp.reporteReport1("algo 1", "algo 2",...., "algo N");
        rp.Show();       
    }
    catch (Exception){}
}


y listo.


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

Para otro tipos de reportes tipo grid, no me queda más que recomendarte otra opción de reportes, o por que no la generacion de PDFs

Bueno esto es todo espero haber no aburrido mucho y que sea de utilidad a la comunidad. XD

___________________________
Leonardo Sánchez Jiménez.
Costa Rica.
2011.

debugger interaction with running application

$
0
0

hi

I have tryed to integrate sharpdevelop debugger in my app and I have integrated texteditor as scripting tool

my goal is to debug some scripts that uses my running assemblies and give the end user the possibility to run some internal functions simply and debug them.this functions are exposed by a separate dll project.

when loading the project in the scripting tool I can get methods and call them but I have no idea about values from my main app

so is there any way to do this?

I have read that there is some methods to interact with interprocessing but I dont know

may be using sharpsnippetcompiler and integrate it into the application is like using an other instance of sharpdevelop and it is not really integrated in the app.

 

 

 

How can I solve this problem with this program?

$
0
0

SharpDevelop Version : 4.3.1.9430-406354be

.NET Version         : 4.0.30319.1008

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : Italian (Italy) (it-IT)

Working Set Memory   : 22552kb

GC Heap Memory       : 292kb

 

Unhandled exception terminated SharpDevelop

Exception thrown:

System.IO.DirectoryNotFoundException: Impossibile trovare una parte del percorso 'E:\AddIns\'.

   in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   in System.IO.FileSystemEnumerableIterator`1.CommonInit()

   in System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)

   in System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)

   in ICSharpCode.Core.CoreStartup.AddAddInsFromDirectory(String addInDir)

   in ICSharpCode.SharpDevelop.Sda.CallHelper.InitSharpDevelopCore(CallbackHelper callback, StartupSettings properties)

   in ICSharpCode.SharpDevelop.Sda.SharpDevelopHost..ctor(AppDomain appDomain, StartupSettings startup)

   in ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()

   in ICSharpCode.SharpDevelop.SharpDevelopMain.Run()

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

 

---- Recent log messages:

17:45:41.394 [1] INFO - InitSharpDevelop...

17:45:42.062 [1] INFO - Looking for AddIns...

17:45:42.431 [1] INFO - Leaving RunApplication()

17:45:42.475 [1] FATAL - System.IO.DirectoryNotFoundException: Impossibile trovare una parte del percorso 'E:\AddIns\'.

   in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   in System.IO.FileSystemEnumerableIterator`1.CommonInit()

   in System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)

   in System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)

   in ICSharpCode.Core.CoreStartup.AddAddInsFromDirectory(String addInDir)

   in ICSharpCode.SharpDevelop.Sda.CallHelper.InitSharpDevelopCore(CallbackHelper callback, StartupSettings properties)

   in ICSharpCode.SharpDevelop.Sda.SharpDevelopHost..ctor(AppDomain appDomain, StartupSettings startup)

   in ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()

   in ICSharpCode.SharpDevelop.SharpDevelopMain.Run()

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

 

---- Post-error application state information:

NRefactory find all types inhereting certain base class

$
0
0

Im trying to render Javascript from a T4 template, the javascript should reflect classes that inherit a specific base class. I've gotten this far but the types are unresolved so Im guessing im doing something wrong.

 

            var parse = newCSharpParser(); 

            var tree = Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories)

                                .Select(f => parse.Parse(File.ReadAllText(f), f).ToTypeSystem()); 

 

            var project = newCSharpProjectContent();

            project.AddOrUpdateFiles(tree);

            varcompilation = project.CreateCompilation();

            var type = compilation.FindType(newFullTypeName("Commands.Command"));

WPF project error

$
0
0

SharpDevelop Version : 4.3.3.9663-463ee024
.NET Version         : 4.0.30319.296
OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture      : Invariant Language (Invariant Country) ()
Current UI language  : zh
Working Set Memory   : 255884kb
GC Heap Memory       : 110706kb
Unhandled WPF exception
Exception thrown:
System.InvalidOperationException: Cannot Undo while transaction is running
   at ICSharpCode.WpfDesign.Designer.Services.UndoService.Undo()
   at ICSharpCode.WpfDesign.Designer.DesignSurface.Undo()
   at ICSharpCode.WpfDesign.Designer.ExtensionMethods.<>c__DisplayClass6.<AddCommandHandler>b__4(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
   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.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
   at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
   at System.Windows.UIElement.OnKeyDownThunk(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
16:35:11.093 [26] DEBUG - Received command BuildDone
16:35:11.093 [26] INFO - Finished building wpftest, success=True
16:35:11.093 [26] INFO - Start building wpftest
16:35:11.093 [19] INFO - Finished building wpftest, success=True
16:35:11.093 [1] INFO - Debugger Command: Start (withDebugger=False)
16:35:11.921 [13] DEBUG - Removing part d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml from compound class wpftest.Window1
16:35:11.921 [13] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
16:35:11.921 [13] DEBUG - Adding existing class Window1 from Window1.xaml
16:35:11.921 [13] DEBUG - Creating compound for wpftest.Window1
16:35:11.921 [1] DEBUG - ParseInformationUpdated d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml new!=null:True
16:35:13.406 [8] DEBUG - Removing part d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml from compound class wpftest.Window1
16:35:13.406 [8] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
16:35:13.406 [8] DEBUG - Adding existing class Window1 from Window1.xaml
16:35:13.406 [8] DEBUG - Creating compound for wpftest.Window1
16:35:13.406 [1] DEBUG - ParseInformationUpdated d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml new!=null:True
16:35:14.906 [14] DEBUG - Removing part d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml from compound class wpftest.Window1
16:35:14.906 [14] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
16:35:14.906 [14] DEBUG - Adding existing class Window1 from Window1.xaml
16:35:14.906 [14] DEBUG - Creating compound for wpftest.Window1
16:35:14.906 [1] DEBUG - ParseInformationUpdated d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml new!=null:True
16:35:16.406 [5] DEBUG - Removing part d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml from compound class wpftest.Window1
16:35:16.406 [5] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
16:35:16.406 [5] DEBUG - Adding existing class Window1 from Window1.xaml
16:35:16.406 [5] DEBUG - Creating compound for wpftest.Window1
16:35:16.406 [1] DEBUG - ParseInformationUpdated d:\我的文档\SharpDevelop Projects\wpftest\wpftest\Window1.xaml new!=null:True
---- Post-error application state information:
Installed 3rd party AddIns: 
Workbench.ActiveContent: ICSharpCode.WpfDesign.AddIn.WpfViewContent
ProjectService.OpenSolution: [Solution: FileName=d:\我的文档\SharpDevelop Projects\wpftest\wpftest.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: wpftest]
Viewing all 1764 articles
Browse latest View live