[Mono-list] Fwd: embedding mono runtime

Miguel de Icaza miguel@ximian.com
07 Aug 2002 16:31:43 -0400


> Is it somehow possible to embedd the mono runtime in process into a NON
> GTK/GNOME application ? Would it be very difficult to emulate the event loop
> ?

mono does not actually depend on Gtk/Gnome and does not know about its
mainloop.

Indeed, in the recent mono-in-gnumeric hack, I ran the ASP.NET server on
a thread, to avoid having to figure this out ;-)

> I haven't looked at the code yet, but like to know what you the mono
> specialists think about such an embedding, before I completely dig into that.

Yes, it is possible.  Look at mono/samples/embed.

> To be more detailed: I'd like to embedd the mono runtime engine into KATE
> (KDE's Advanced Text Editor) to make it possible to write plugins for that
> application in c#,vb.net(if it is finally supported),.... Since there are
> already QT bindings, i think it shouldn't be difficult to create the kate
> bindings, the only problem I see, is how to embedd the runtime.

Very easy, very easy.  We also checked in a small document to
mono/docs/embedding-api that has some more information for you.

best wishes,
Miguel