Re: Help: gtk_list_store_set causing memory fault !

On Thu, Jun 16, 2005 at 11:09:26PM +0000, Dean Toth wrote:
> I have gtk-2.0.6 on my laptop (linux) and gtk-2.6.0 on a HPUX 11.11 system. 
> There is some code that works on the laptop but not on the HP box. I have 
> pared the code down to the following which causes a memory fault:
> -----------------------
> #include <gtk/gtk.h>
> int main( int argc, char *argv[] )
> { GtkListStore *list_store;
>  GtkTreeIter iter;
>  gtk_init (&argc, &argv);
>  list_store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING );
>  gtk_list_store_append (list_store, &iter);
>  gtk_list_store_set (list_store, &iter, COLUMN_ONE, "one", COLUMN_TWO, 
> "two", -1);
>  gtk_main ();
>  return(0);
> }
> -----------------
> ...
> Can someone PLEASE tell me what I am doing wrong.

I don't know what's going on here (and don't have HP-UX to
try), but this code should not cause memory faults.  So it's
possible you don't do anything wrong.

Try to get a stack trace and file a bug report...


A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

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