Re: Some questions regarding GObject-Introspection



>>> 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]