List Info

Thread: gecko sharp




gecko sharp
user name
2008-01-03 11:00:50
sorry if this is not the correct place:
-----------------
i did a very easy program using gecko sharp (Monodevelop 0.18.1 and mono 1.2.6), works fine in Linux, but in windows doesnt,
I installed
- Mono 1.2.6
- GRE-GeckoSharp-1.7.12-0.1
the error:
-----------------.

C:Debug>mono web.exe
gtkmozembed: realizing
gtkmozembed: initializing window
gtkmozembed: realizing window
Stacktrace:

  at (wrapper managed-to-native) Gtk.Container.gtk_container_add (intptr,intptr)
 ;<0x00004>
 ; at (wrapper managed-to-native) Gtk.Container.gtk_container_add (intptr,intptr)
 ;<0xffffffff>
&nbsp; at Gtk.Container.Add (Gtk.Widget) <0x00041>
 ; at MainWindow..ctor () <0x0007d>
 ; at web.MainClass.Main (string[]) <0x0001e>
 ; at (wrapper runtime-invoke) web.MainClass.runtime_invoke_void_string[] (object
,intptr,intptr,intptr) <0xffffffff>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:Debug>
-----------------------------------------
i needed to make reports, Thnz
--
Christian
Re: gecko sharp
user name
2008-01-03 11:07:04
the source code

using System;
using Gtk;
using Gecko;

public partial class MainWindow: Gtk.Window
{ &nbsp;  
WebControl web = new WebControl();  
&nbsp;   public MainWindow (): base (Gtk.WindowType.Toplevel)
    {
&nbsp;   &nbsp;   Build ();
    &nbsp;   string mozillaEnvPath = System.Environment.GetEnvironme
ntVariable("GECKOSHILLA_BASEPATH";);
 &nbsp;  &nbsp;   if(mozillaEnvPath != null && mozillaEnvPath.Length != 0){
    &nbsp;   &nbsp;   Gecko.WebControl.CompPath = mozillaEnvPath;
&nbsp;   &nbsp;   }&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;   
&nbsp;   ; &nbsp;  web.Show();
 &nbsp; &nbsp; &nbsp;  alignment1.Add(web);
  ;  &nbsp;   web.LoadUrl(entry1.Text);
  ;  &nbsp;   &nbsp;   &nbsp;   
&nbsp;   }
&nbsp;   

&nbsp;   
&nbsp;   protected void OnDeleteEvent (object sender, DeleteEventArgs a)
 &nbsp;  {
  ;  &nbsp;   Application.Quit ();
    &nbsp;   a.RetVal = true;
&nbsp;   }

&nbsp;   protected virtual void OnEntry1Activated (object sender, System.EventArgs e)
 &nbsp;  {
&nbsp;   &nbsp;   web.LoadUrl(entry1.Text);
  ;  }

 &nbsp;  protected virtual void OnBtnIrActivated (object sender, System.EventArgs e)
 &nbsp;  {
&nbsp;   &nbsp;   web.LoadUrl(entry1.Text);
  ;  }
}

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )