Re: [gtk-list] Re: problems with Gtk_CList



Havoc Pennington wrote:

> On Mon, 28 Sep 1998, Marsel Osipov wrote:
> > Hello.
> >     I am having a problem with Gtk_CList.  When I do clist->append(row),
> > where row is gchar **row = new gchar*[1]; I get a bunch of stdout stuff,
> > which does not make any sence. Here is an example of the stdio stuff
> > ---> P}, P}, P}, P}, etc...   And the program crashes.  Can anyone point
> > me to more info of what this is?
> >
>
> Looks like memory garbage. Your row array needs to have an element for
> each column in the list, maybe you have more than one column and only one
> element?
>

I will check, but I don't think I do.

> There's no need to dynamically allocate the array, by the way - clist
> copies it. So you can just declare it local if it's convenient.
>

Ok.

> HTH,
> Havoc
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

Thank you
Marsel



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