Run time errors.....



Hi,
    I installed the development version of gtk(1.3.5), with the
corresponding development version of glib. After that I tried to
compile the frame.c file, which is available with the gtk1.3.5
pakage (Path : gtk+-1.3.5\exapmles\frame\frame.c), using the
Make file, which I have pased at the end. The compiltaion was
success. But while executing, it gave me the following run-time
errors. I don't know how to solve the problem.

          I tested the same before installing the gtk 1.3.5. using the
Makefile, whic was there in the same folder of frame.c. It was
working fine.

    I installed this version of gtk only to use the GdkGC, which
was not properly implemented in the stable version(The only
member of the GdkGC class is glong dummy_var, which I think
doesn't do anything.

Can anybody help me to solve the problem. I am using Redhat 6.2
version of Linux.




--------------------   Makefile -----------------------------
PKG_CONFIG_PATH=/root
CC = gcc

frame: frame.c
        $(CC) `pkg-config --cflags gtk+-2.0`  frame.c -o frame \
         `pkg-config --libs gtk+-2.0`

clean:
        rm -f *.o frame
--------------------------------------------------------


-------------------------- Error---------------------------

Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS
CURRENTLY
                UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES
INSTABILITIES.
                if you don't know why you are getting this, you probably
want to
                use the stable branch which can be retrived from
                ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with
                cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2
gtk+

** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10"

** WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10"

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed
GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'
GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (ob
ject)' failed
GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (obje
ct)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (obje
ct)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'


GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (obje
ct)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (obje
ct)' failed

GRuntime-WARNING **: invalid cast from (NULL) pointer to `GObject'

GRuntime-CRITICAL **: file gobject.c: line 1241 (g_object_unref):
assertion `G_IS_OBJECT (obje
ct)' failed

** CRITICAL **: file pango-context.c: line 666 (fallback_engine_shape):
assertion `font != NUL
L' failed

** ERROR **: file shape.c: line 57 (pango_shape): assertion failed:
(glyphs->num_glyphs > 0)ab
orting...
Trace/breakpoint trap (core dumped)







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]