[Gtk-sharp-list] webkit-sharp error on Windows 7 64 bits

Milton Pividori miltondp at gmail.com
Sun Nov 20 11:33:51 EST 2011


Great! Thanks Christian!

El 20/11/11 11:42, Christian Hoff escribió:
> Hi Milton,
>
> this is an old bug in gtk-sharp. See this Bugzilla entry for more information: https://bugzilla.novell.com/show_bug.cgi?id=380675 . All you have to do is place the [STAThread] attribute in front of you main method.
>
> I think that was one of the most difficult bugs in gtk-sharp back then. I spent days tracking the problem down, but was never able to find the reason for this.
>
> Hope this helps,
>
> Christian
>
> -------- Original-Nachricht --------
>> Datum: Sat, 19 Nov 2011 17:55:45 -0300
>> Von: Milton Pividori<miltondp at gmail.com>
>> An: gtk-sharp-list at lists.ximian.com
>> Betreff: [Gtk-sharp-list] webkit-sharp error on Windows 7 64 bits
>>   Hi guys,
>>
>> Last week LDel001 sent an email asking if this library is being maintained
>> by someone. Do you have any idea about this?
>>
>> I'm getting an exception on Windows 7 64 bits with my app, which uses
>> webkit-sharp 0.3. It works fine on Windows XP 32 bits. I run it using MS
>> .NET 4.0, and webkitgtk 1.4.+ (pulled from Midori browser binaries).
>>
>> It fails when I run the method PrintFull on the MainFrame of my WebView
>> object and the GtkPrintOperation is PrintDialog. It works if it's Print.
>> This is the exception I get:
>>
>> System.Runtime.InteropServices.SEHException (0x80004005): External
>> component has thrown an exception.
>>     at WebKit.WebFrame.webkit_web_frame_print_full(IntPtr raw, IntPtr
>> operation, Int32 action, IntPtr&  error)
>>     at WebKit.WebFrame.PrintFull(PrintOperation operation,
>> PrintOperationAction action)
>>     at
>> StratosClient.Common.ImpresionDocumento.<CargaWebViewFinalizada>b__0(Object
>> , EventArgs )
>>
>> What's strange for me is that Midori (native libraries) works fine when
>> showing the print dialog (PrintDialog). This makes me think that the
>> problem might reside in webkit-sharp.dll.
>>
>> Could you help me on this?
>>
>> Thanks.
>>
>> -- 
>> Milton Pividori
>> Blog: www.miltonpividori.com.ar

-- 
Milton Pividori
Blog: www.miltonpividori.com.ar



More information about the Gtk-sharp-list mailing list