URL: https://linuxfr.org/forums/programmation-c--3/posts/systemnullreferenceexception-avec-gecko Title: System.NullReferenceException avec Gecko Authors: Jean-Yves Beaujean Date: 2005年04月07日T14:39:59+02:00 Tags: firefox Score: 0 Bonjour, Je suis développeur Java et PHP et je me mets actuellement au C#. J'ai commencé avec l'exemple simple d'un petit navigateur utilisant la librairie Gecko. La compilation se passe bien, mais à l'exécution j'obtiens cette erreur : Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object J'utilise MonoDevelop 0.5 avec la Mandrake 10.2rc. J'ai bien défini la variable MOZILLA_FIVE_HOME et LD_LIBRARY_PATH contient bien /usr/lib/mozilla-firefox-1.0.1/:/usr/lib/mozilla-firefox-1.0.1/ ( contenant le fichier libgtkembedmoz.so). J'ai utilisé le tutoriel se trouvant à l'adresse [http://primates.ximian.com/~edasque/projects/Tutorial/glade2.html.(...)](http://primates.ximian.com/~edasque/projects/Tutorial/glade2.html.) Dans celui-ci, il parle de cette erreur : Mozilla: because of the way Mozilla is installed in some distributions (I haven't been able to trace what it exactly is yet), running the application in MonoDevelop causes the following failure: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object . Running the application from a terminal (the exe is in the project bin/Debug directory) solves that issue. Also make sure MOZILLA_FIVE_HOME is set. Mais même lorsque je lance l'applic en ligne de commande, l'erreur se produit. Y a-t-il autre chose à configurer ?