Re: Font allocation segfaults?
- From: Havoc Pennington <hp redhat com>
- To: Peter-Frank Spierenburg <peter cs dal ca>
- Cc: gnome-list gnome org
- Subject: Re: Font allocation segfaults?
- Date: 04 Jun 2000 12:49:58 -0400
Peter-Frank Spierenburg <peter@cs.dal.ca> writes:
> What am I doing wrong?
>
> gchar *font_name =
> "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1";
> GdkFont *font = gdk_font_load(font_name);
>
> this segfaults.
>
The only way this might segfault is with binary-incompatible libraries
or maybe you didn't call gtk_init().
Perhaps you mean that it segfaults later on, maybe the font doesn't
load so that font == NULL.
Anyway, no point in guessing; get a backtrace from gdb.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]