[Gtk-sharp-list] GLib.Value object/System.Object constructor problem in Windows
Daniel Rodríguez Troitiño
notzcoolx@yahoo.es
Sat, 02 Oct 2004 20:47:33 +0200
This is a multi-part message in MIME format.
--------------030209060309040706030002
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In Windows XP Profesional, using .Net 1.1 with GTK# 1.0.2 from [4].
The GLib.Value constructor public Value (Object val) and public Value
(object val) fails with this stack trace:
Excepción no controlada: System.NullReferenceException: Referencia a
objeto no establecida como instancia de un objeto.
~ at GLib.Value.g_value_set_boxed(Value& val, IntPtr data)
~ at GLib.Value.set_Val(Object value)
~ at GLib.Value..ctor(Object obj)
~ at Test..ctor()
~ at Test.Main(String[] args)
This bug (?) prevents using the ListStore class to store custom user
classes.
I already filled a bug in bugzilla (#67387, link [3]).
Daniel Rodríguez Troitiño
[1]
http://lists.ximian.com/archives/public/gtk-sharp-list/2004-July/004417.html
[2]
http://lists.ximian.com/archives/public/gtk-sharp-list/2004-September/004805.html
[3] http://bugzilla.ximian.com/show_bug.cgi?id=67387
[4]
http://forge.novell.com/modules/xfcontent/file.php/gtks-inst4win/Win32%20Installer/v1.0.2.4/gtksharp-1.0.2-win32-0.6.exe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBXvfE2sbnJbpcZnoRAsIqAJwITqVihDxIe25V1jcgtLXy/j56ygCfaaJv
UEKLZSsJlfd4aethCoxQVpA=
=0vJM
-----END PGP SIGNATURE-----
--------------030209060309040706030002
Content-Type: text/plain;
name="Test.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Test.cs"
using GLib;
using Gtk;
class Test {
class InternalTest {
// Nothing
}
Test()
{
GLib.Value val = new GLib.Value(new InternalTest());
}
public static void Main(string[] args)
{
Application.Init ();
new Test();
Application.Run ();
}
}
--------------030209060309040706030002--