gtk label segmentation fault

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;

strcpy(ch,"i put some thing here");

ok, it works first time, but when the program executes
this function again it creates a segmentation fault.

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 

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