[Mono-list] Window with Gecko WebControl does not reopen
colbec at start.ca
Thu Aug 7 08:53:29 EDT 2008
Chris Howie-3 wrote:
> On Wed, Aug 6, 2008 at 10:15 AM, colbec <colbec at start.ca> wrote:
>> I have a window A which contains a button which opens a new window B
>> containing a WebControl. Each time the button in window A is pressed a
>> instance of window B opens with a different URL exposed in the B
>> This works fine repeatedly with new windows provided at least one child
>> window remains open.
>> As soon as all child windows have been closed then a press on the button
>> window A crashes the application with the following stacktrace when the
>> method ShowAll() is applied to the window:
> Yes, I had this same issue. My solution was to create a WebControl
> and hold a reference to it while the program is open. This seems to
> be enough to keep it happy.
> Chris Howie
> Mono-list maillist - Mono-list at lists.ximian.com
Thanks for this suggestion of a dummy instance. At first it looked very
good, in the MonoDevelop IDE the solution works very well, but when I run
the app from the CLI it fails. I have updated my library refs to indicate
that the libgtkembedmoz.so is in /usr/lib/xulrunner-126.96.36.199/.
In trying to trap the error in the CLI context I get "Object reference not
set to an instance of an object" even though monodevelop thinks there is a
reference. The window with the WebControl opens, but the control itself is
missing. The rest of the app works fine from the CLI.
View this message in context: http://www.nabble.com/Window-with-Gecko-WebControl-does-not-reopen-tp18852144p18869797.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list