Re: Adding a boolean breaks my code
- From: Jamie Guinan <guinan bluebutton com>
- To: rhfreeman <rhfreeman micron com>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: Adding a boolean breaks my code
- Date: Wed, 14 Jun 2000 10:37:38 -0400 (EDT)
On Wed, 14 Jun 2000, rhfreeman wrote:
> Hi folks,
>
> I don't know what is causing this problem, it might be gcc or it might be
> gtk or it might be something else!
<snip>
> ... Can you folks check it for my under different OSes to see what is
> going wrong?
It crashes on x86 Red Hat Linux 6.2 on the first "a". A few things to
look at:
1) In add_panel(), you set ptr to the address of a structure,
ptr=&w_layout[non_used_paine];
then you g_free it at the end,
g_free(ptr);
You should only g_free that which you g_malloc. :)
2) In main(), I don't think the gtk_drawing_area_size() call
inside the for loop is of much use before gtk_widget_show(main_window)
is called. The values for main_window->allocation.height, etc.
are some default values like "1".
-Jamie
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]