Re: frequently updated pixbuf images disapear after a while



On Sun, 27 Aug 2006, rupert wrote:

the g_sprintf returns the number of characters, so i should use it like the
normal sprintf,
gchar *mapper_chk_cmd;
g_sprintf(mapper_chk_cmd, "/dev/mapper/%s", data);

but it doesnt seem to help, the segfault is there, too

Sorry, I meant g_strdup_printf().

when i init it with gchar mount_chk_cmd[128]; i can use it like
with sprintf, but i cant free the memory for these gchars.

I got the warning with the g_sprintf, but i think it was because it returned
int

i removed the fclose and pclose, but the app also crashed after a while with
the same
symptoms.


The file descriptor thing has nothing to do with the segfaults. They were a separate problem.

-Peter



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