[Mono-devel-list] GObject Binding issues

PAUL BETTS betts.62 at osu.edu
Thu Apr 28 22:28:40 EDT 2005


I'm trying to bind the functions implemented by Gaim and using Zac Bowling's guide for Glib based libraries. It appears to be fairly straightforward, however I get the following output when I run codegen:

$ gapi2-codegen --outdir=./src `pkg-config --cflags gtk-sharp-2.0` --generate libgaim.xml

Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
in <0x0009f> GtkSharp.Generation.ObjectGen:Studlify (System.String name)
in <0x010e4> GtkSharp.Generation.ObjectGen:Generate (GtkSharp.Generation.GenerationInfo gen_info)
in <0x00437> GtkSharp.Generation.CodeGenerator:Main (System.String[] args)

(Note that ./src is an empty dir I created)

and here is my .sources file

<gapi-parser-input>
  <api filename="libgaim.xml">
    <library name="libgaim.dll">
      <namespace name="LibGaim">
        <dir>/home/paul/gaim-1.2.1/src</dir>
      </namespace>
    </library>
  </api>
</gapi-parser-input>

If this is supposed to go to the GTK-sharp list, my apologies, I wasn't discussing Gtk-Sharp bindings specifically so I figured it'd be better suited for this list.

Paul Betts
betts.62 at osu.edu




More information about the Mono-devel-list mailing list