strange segfault
- From: "Maximo Pech" <makz linuxmail org>
- To: gtk-app-devel-list gnome org
- Subject: strange segfault
- Date: Fri, 04 Jun 2004 22:29:34 -0600
Hi, I'm having problems with the following code:
...
char some_string[20];
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
view = gtk_text_view_new();
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view));
...
gtk_text_buffer_set_text(buffer, "Hello this is some text", -1);
gtk_text_buffer_get_end_iter(buffer, iter);
gtk_text_buffer_insert(buffer, iter, "\nSome more text", -1);
when I run this I get a segfault but if I delete the line that says "char some_string[20]" it works as I
expected.
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]