[Gtk-sharp-list] Gtk.Combo.Entry + WINDOWS

felipe maya felipemaya@manizales.com
Mon, 10 Nov 2003 09:54:23 -0600


<html><body><font face='arial' color='#000000' size='2'>i´m use mcs.exe --stacktrace --unsafe ...
<br>
i´m obtaining this when i try to use combo.Entry:
<br>

<br>
C:\cygwin\home\devel\ryc\r_y_c>mono RyC.exe
<br>

<br>
** (<unknown>:868): WARNING **: byref boolean marshalling not inplemented
<br>

<br>
** (<unknown>:868): WARNING **: byref boolean marshalling not inplemented
<br>

<br>
Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required
<br>
in <0x00086> .main:.ctor ()
<br>
in <0x0002a> .main:Main (string[])
<br>

<br>

<br>
THIS IS THE SOURCE:
<br>

<br>
using Gtk;
<br>
using GtkSharp;
<br>
using Gdk;
<br>
using GdkSharp;
<br>
using System;
<br>
using System.Data;
<br>
using System.Collections;
<br>

<br>
public class main:Gtk.Window{
<br>
  public main() : base("RyC"){
<br>
    Combo combo = new Combo();
<br>
    combo.Entry.Text = "HOLA"; //THE PROBLEM START HERE
<br>
    this.Add(combo);
<br>
    this.ShowAll();
<br>
    this.DeleteEvent += new DeleteEventHandler(quit);
<br>
  }
<br>
  private void quit(object obj, DeleteEventArgs args) {
<br>
    Application.Quit();
<br>
    args.RetVal = true;
<br>
  }
<br>
}
<br>

<br>
ON LINUX WORK FINE.<hr color='#FACB65' width='350' align='left'>
<font face='arial' size='2' color='Black'>Consigue tu correo GRATIS en <b><a href='http://manizales.com'>Manizales.com</a></b>,<br>
dale vida a tus mensajes con m&aacute;s de 300 motivos gráficos.<br>
Busca el portal de tu ciudad en <a href='http://www.enredese.net' target='_blank'>http://www.enredese.net</a></font><br>