Hi, any help for this error.
I have the next function that is triggered on a thread, I get a segmentation fault in “gtk_widget_show_all(gtkGridChat);”
void *msgReceived(void *args)
{
g_print("[msgReceived] start\n");
struct requestStrc *response = args;
char msg[200] = "";
strcpy(msg, curUserChatName);
strcat(msg, ": ");
strcat(msg, response->content);
gtk_grid_insert_row(GTK_GRID(gtkGridChat), historyMsg);
button[historyMsg] = gtk_button_new_with_label(msg);
gtk_grid_attach(GTK_GRID(gtkGridChat), button[historyMsg], 1, historyMsg, 1, 1);
gtk_widget_show_all(gtkGridChat);
historyMsg++;
return NULL;
}