[Gtk-sharp-list] Progress Bars

Pablo Fischer pablo@pablo.com.mx
Fri, 05 Dec 2003 02:23:36 -0600


Ok, One of the parts of my project (mbloggy) is to connect to a site and
retrieve some data (via xmlrpc) however I would like to have a
'progress' bar.

I think I have one, I made one in glade, you know, a simple window with
a progress bar, and I have a class (BloggyProgress) that I lauch when I
retrieve data, the window is launched.. but occurs nothing, I've tried
with the following:

  public BloggyProgress() {
    //Load the Glade Interface
    Glade.XML ui = new Glade.XML(null, "bloggyprogress.glade",
"progressbarwindow", null);
    //Connect it
    //Cast the Window
    progressbarwindow = (Gtk.Window)ui["progressbarwindow"];
    //And the progressbar
    progress = (Gtk.ProgressBar)ui["progress"];
    progress.Fraction = 1;
    //Show it..

And fails If I try to use .Fraction, .Pulse or something, well it
compiles ok, but when I show it (the Progress) bar I get an exception:

Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required

THIS only happens if I try to use methods or properties of a

Somebody knows how to do this?.
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt