GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Oct 31, 2014 1:35 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: label danamic
PostPosted: Mon Jul 13, 2009 10:26 am 
Offline

Joined: Mon Jul 13, 2009 10:12 am
Posts: 3
this is my code:

...

for(i=0;i<2000;i++){

sprintf(aux,"%d", i);
gtk_label_set_text (label, aux);

}

...

when i run my program this is my output:

Falha de segmentação

and my program blow!

Help me


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 15, 2009 9:40 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello and welcome to the GTK+ forums.

There is only one thing I can tell your for sure about your problem: the gtk function you posted is not the culprit of your troubles. Your application segfaults somewhere else.

Post more code with more specific description of your problem if you wish to get any help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group