gtk label segmentation fault
- From: Yogesh M <yzonesoft yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: gtk label segmentation fault
- Date: Sun, 7 Aug 2005 21:18:15 -0700 (PDT)
i used gtk gtk_label_new( const char *str ) to create
a new label[why it needs a const char?]
below is a part of my code
const ch;
const char *cch;
ch==cch;
strcpy(ch,"i put some thing here");
label=gtk_label_new(cch);
ok, it works first time, but when the program executes
this function again it creates a segmentation fault.
also
label=gtk_label_new((const char*)ch);
doesnt work either,
I get segmentation fault when, i destroy the dialog
which contain the label.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]