possible bug



ok folks,
i've been around and around with this bug, and this is what i've found thus 
far. if i have a "gchar *some_variable" which is initialized in a function 
that is not a callback function, it does not survive going into and out of 
gtk_main(). upon return from the gtk_main() loop the address is the same as 
upon entry, but the character string is, generally, the null string. a few, 
(approx 5%) of the times, it's been an unititialized string. i changed my 
code so that the strings were initialized within a callback function, and 
they persist forever. i would like to know why this behaviour is exhibited. 
i've chased through the documentation, but find no mention of anomolous 
behaviour in the assignment of character strings to a gchar variable. i would 
love to know what i am missing, or if i've actually stumbled across a bug.(in 
something other than my code).
Many thanks for any info,
Jeffrey



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