Re: Some questions regarding GObject-Introspection
- From: "Martin Schlemmer" <Martin Schlemmer nwu ac za>
- To: "Fan Chun-wei" <fanc999 yahoo com tw>
- Cc: gtk-devel-list gnome org, windows-devel-list gnome org
- Subject: Re: Some questions regarding GObject-Introspection
- Date: Thu, 19 Jul 2012 18:25:48 +0200
>>> On 7/19/2012 at 7:28 AM, Fan Chun-wei <fanc999 yahoo com tw> wrote:
> After figuring out where I should place the .typelib/.gir files, I
> proceeded to to run the glib-print example, but I get:
> **
> domain:ERROR:glib-print.c:1057148:main: hello world
>
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
>
Seems fine, as its an assert that is triggered by that example. Try to change line 20 from:
-----
base_info = g_irepository_find_by_name(repository, "GLib", "assertion_message");
-----
to:
-----
base_info = g_irepository_find_by_name(repository, "GLib", "warn_message");
-----
then it will not trigger the assert and (hopefully) exit normally and just issue the following warning:
-----
(glib-print.exe:6764): domain-WARNING **: (glib-print.c:4206717):main: runtime check failed: (hello world)
-----
>From the error to that call, it looks like it should have been warn_message anyhow ....
Regards,
Martin
Vrywaringsklousule / Disclaimer: http://www.nwu.ac.za/it/gov-man/disclaimer.html
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]