[Gtk-sharp-list] TestCombo from Ximian

Francis Brosnan Blazquez francis at aspl.es
Sun Jul 17 12:33:46 EDT 2005


El dom, 17-07-2005 a las 18:02 +0200, underdog10 at netcourrier.com
escribió:
> Hello,
> 
> I still trying to set a event on a comboentry in order to received event.
> 
> it is crashing at
> combo.Entry.Activated += new EventHandler (OnComboActivated);
> 
> This crash on both gtk version
> 
> I use this file as sample
> http://svn.myrealbox.com/source/branches/gtk-sharp-1-0-branch/gtk-sharp/sample/test/TestCombo.cs
> 
> 
> I just the main class to make it compile:
> 
> mcs TestCombo.cs -out:test.exe -pkg:gtk-sharp-2.0
> 
> mcs TestCombo.cs -out:test.exe -pkg:gtk-sharp
> 
> Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
> in <0x00189> WidgetViewer.TestCombo:Create ()
> in <0x0000c> WidgetViewer.TestCombo:Main (System.String[] args)

Hi Francois,

The problem you are running into have been solved since gtk-sharp 1.0.10
version.

You can check that the Entry reference inside the combo is null. This
leads to all errors you are detecting.

What version are you running (platform/gtk/mono)?

Cheers,

> 
> Thanks,
> 
> /Francois
> 
> -------------------------------------------------------------
> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
> Web/Wap : www.netcourrier.com
> Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
> Minitel: 3615 NETCOURRIER (0,16 € TTC/min)
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.



More information about the Gtk-sharp-list mailing list