Re: [gtk-list] problems with Gtk_CList
- From: Havoc Pennington <rhpennin midway uchicago edu>
- To: Gtk+ mailing list <gtk-list redhat com>
- Subject: Re: [gtk-list] problems with Gtk_CList
- Date: Tue, 29 Sep 1998 00:02:48 -0500 (CDT)
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?
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.
HTH,
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]