DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:reply-to:user-agent:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=fr3TX8vXzfLvLhn7jPWjjbcMkdSnTLTE7olUhKVizJQzRTTjDyY3Cms+2jk+cHF8hpkxjxJq7mmzgQVRZZ6kZbP1pIiIZKPwK8Pt6nm7WiFCupbXo2y7pRgMMC81zy0KyokPx4Lr6Dqop7t9bOKDkZkdfju0MjlWxbloyfahoN4= Message-ID: <454220D7.4000803 at laposte.net> Date: Fri, 27 Oct 2006 17:08:07 +0200 Reply-To: matthieu.dubuget at laposte.net MIME-Version: 1.0 CC: lablgtk at math.nagoya-u.ac.jp Subject: Re: Cursors References: <453DE9F1.8060404 at laposte.net> <20061027.093725.95890766.garrigue at math.nagoya-u.ac.jp> In-Reply-To: <20061027.093725.95890766.garrigue at math.nagoya-u.ac.jp> Content-Transfer-Encoding: 8bit From: Matthieu Dubuget Content-Type: text/plain; charset=ISO-8859-1 Content-Length: 603 Jacques Garrigue a écrit : > >> Then, I tried to get one Gdk.window from my application window. >> >> Unfortunately, I experienced a runtime crash. >> >> let w = GWindow.window () in >> (* let win = w#misc#window in *) >> print_endline "Ciao"; >> exit 0 >> >> If I uncomment the commented line in the above program, I receive >> "Fatal error: exception Gpointer.Null" >> > > That one is easy: you need to call w#misc#realize() befor accessing > w#misc#window. It is done automatically if the window is already > shown. > > Thanks a lot! I did not thought about this. Salutations Matt