SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Unhandled Exception when typing Gtk.Fixed

Last post 01-08-2008 9:42 PM by DanielGrunwald. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-03-2008 9:47 PM

    Unhandled Exception when typing Gtk.Fixed

    The IDE crash when adding the following line into the editor of new Gtk Window project 

     Gtk.Fixed fixed = new

    The full code is the following :

    /*
    * Created by SharpDevelop.
    * User: pdelporte
    * Date: 3/01/2008
    * Time: 21:28
    *
    * To change this template use Tools | Options | Coding | Edit Standard Headers.
    */
    using
    Gtk;
    using System;

    namespace DefaultNamespace
    {
    /// <summary>
    ///
    Description of Window1.
    /// </summary>
       public class Window1 : Window
       {
          public Window1() : base("Mono")
          {
             Gtk.Fixed fixed = new
          }
       }
    }

    Details of version of SharpDevelop is :

    SharpDevelop Version : 2.2.1.2648
    .NET Version         : 2.0.50727.1433
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : French (Belgium) (fr-BE)
    Current UI language  : en-US
    Working Set Memory   : 105032kb
    GC Heap Memory       : 42043kb


    Exception thrown:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.EmbeddedStatement(Statement& statement)
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.Statement()
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.Block(Statement& stmt)
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.StructMemberDecl(ModifierList m, List`1 attributes)
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.ClassMemberDecl(ModifierList m, List`1 attributes)
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.ClassBody()
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.TypeDecl(ModifierList m, List`1 attributes)
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.NamespaceMemberDecl()
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.CS()
       at ICSharpCode.NRefactory.Parser.CSharp.Parser.Parse()
       at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryResolver.ParseCurrentMemberAsCompilationUnit(String fileContent)
       at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryResolver.CtrlSpace(Int32 caretLine, Int32 caretColumn, String fileName, String fileContent, ExpressionContext context)
       at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.CtrlSpaceCompletionDataProvider.GenerateCompletionData(TextArea textArea, Char charTyped)
       at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.AbstractCodeCompletionDataProvider.GenerateCompletionData(String fileName, TextArea textArea, Char charTyped)
       at ICSharpCode.TextEditor.Gui.CompletionWindow.CodeCompletionWindow.ShowCompletionWindow(Form parent, TextEditorControl control, String fileName, ICompletionDataProvider completionDataProvider, Char firstChar)
       at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextAreaControl.ShowCompletionWindow(ICompletionDataProvider completionDataProvider, Char ch)
       at CSharpBinding.CSharpCompletionBinding.ShowNewCompletion(SharpDevelopTextAreaControl editor)
       at CSharpBinding.CSharpCompletionBinding.HandleKeyword(SharpDevelopTextAreaControl editor, String word)
       at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.DefaultCodeCompletionBinding.HandleKeyPress(SharpDevelopTextAreaControl editor, Char ch)
       at CSharpBinding.CSharpCompletionBinding.HandleKeyPress(SharpDevelopTextAreaControl editor, Char ch)
       at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.LazyCodeCompletionBinding.HandleKeyPress(SharpDevelopTextAreaControl editor, Char ch)
       at ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextAreaControl.HandleKeyPress(Char ch)

  • 01-04-2008 6:45 PM In reply to

    • siegi44
    • Top 10 Contributor
    • Joined on 03-31-2006
    • Steyr, Austria
    • Posts 183
    • Team Members

    Re: Unhandled Exception when typing Gtk.Fixed

     I get the same error in a WinForms app

    Code:

    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;

    namespace TestEditor
    {
        /// <summary>
        /// Description of MainForm.
        /// </summary>
        public partial class MainForm : Form
        {
            public MainForm()
            {
                //
                // The InitializeComponent() call is required for Windows Forms designer support.
                //
                InitializeComponent();
               
                Point fixed = new // <--
            }
        }
    }

     I think its because "fixed" is a Keyword in C#.

    regards

    Siegfried

    Siegfried Pammer
  • 01-08-2008 9:42 PM In reply to

    Re: Unhandled Exception when typing Gtk.Fixed

    "Fixed" in revision 2794.

    Daniel Grunwald
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.