[Mono-list] Window with Gecko WebControl does not reopen
colbec at start.ca
Thu Aug 7 13:52:12 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-22.214.171.124/.
> 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.
Temporarily resolved. This is what I did:
1. copid the shell script 'monodevelop' into a new file 'monoxxxx'
2. edit the script to remove mentions of monodevelop, leaving the other
3. run mono from this new script such as
CLI> monoxxxx yyyyyy.exe
and now the WebControl behaves as expected in both monodevelop and run from
View this message in context: http://www.nabble.com/Window-with-Gecko-WebControl-does-not-reopen-tp18852144p18876109.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list