Results 1 to 2 of 2

Thread: Unhandeled Exception: Glade + Monodevelop (Natty)

  1. #1
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Thumbs down Unhandeled Exception: Glade + Monodevelop (Natty)

    Hello there,

    I am integrating Glade UI file like this:

    Code:
    using System;
    using Glade;
    using Gtk;
    
    namespace calculator
    {
        public class MainWindow
        {
            public static void Main (string[] args)
            {
                new MainWindow (args);
            }
    
            public MainWindow (string[] args)
            {
                Application.Init ();
                Glade.XML gxml = new Glade.XML (null, "mainwindow.glade", "MainWindow", null);
                gxml.Autoconnect (this);
                Application.Run ();
            }
        }
    }
    But, I am getting the following error:

    Code:
    Unhandled Exception: System.ArgumentException: Cannot get resource file 'mainwindow.glade'
    Parameter name: resource_name
      at Glade.XML..ctor (System.Reflection.Assembly assembly, System.String resource_name, System.String root, System.String domain) [0x00000] in <filename unknown>:0 
      at calculator.MainWindow..ctor (System.String[] args) [0x0000b] in .../calculator/calculator/MainWindow.cs:17 
      at calculator.MainWindow.Main (System.String[] args) [0x00000] in .../calculator/calculator/MainWindow.cs:11 
    The application was terminated by a signal: SIGHUP
    Please help
    Controlling complexity is the essence of computer programming. - Brian

  2. #2
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Re: Unhandeled Exception: Glade + Monodevelop (Natty)

    bump...
    Controlling complexity is the essence of computer programming. - Brian

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •