[Mono-dev] Gecko-Sharp & WebControl.NewWindow Event Handler.

Ben Timby ben at gohelios.com
Fri Jan 6 15:22:48 EST 2006


When one registers an event handler for a Gecko-Sharp
WebControl.NewWindow event, one receives the following exception when a
viewed page attempts to open a popup window.

--
System.ArgumentNullException: Value cannot be null.
Parameter name: type
     at System.Activator.CreateInstance(Type type, Boolean nonPublic)
     at System.Activator.CreateInstance(Type type)
     at
GtkSharp.voidObjectObjectuintSignal.voidObjectObjectuintCallback(IntPtr
arg0, IntPtr arg1, UInt32 arg2, Int32 key)
     at Gtk.Application.gtk_main()
     at Gtk.Application.Run()
     at WinFormTest.GeckoSharpWin.Show(String url) in c:\\documents and
settings\\btimby\\my documents\\work\\winformtest\\geckosharp.cs:line 90
--

This happens on Both Windows and Linux, running Mono 1.1.12.1

I have attached sample code. To test, create an app to instantiate the
attached class, provide the Show method a url to a page that opens a
javascript popup, and see what happens.

How would you go about troubleshooting this? I cannot find the source
code to libgtk-win32-2.0-0.dll. Furthermore, how can I get my hands on
the symbols (for Visual Studio .NET) for the Gecko-Sharp and Gtk-Sharp
assemblies?

Thank you.

-- 
Ben Timby
Senior Software Architect
Helios, LLC
(p) 317-554-3619
(f) 317-554-8997
www.gohelios.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GeckoSharp.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060106/b7c719c3/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3166 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060106/b7c719c3/attachment.bin 


More information about the Mono-devel-list mailing list