Re: compiling okay, success running gtk-app computer dependant



Hi,

edward hage <edha xs4all nl> writes:

> I narrowed the problem down to this program. The following program
> shows a Segmetation Fault on one computer, and works fine for the
> other.

gdb clearly shows that the crash happens in exit() so it is unlikely
that a GLib function is causing your problem.

> 9:   struct tm tms;

> 14:
> 15:  tms = *localtime (&current_time);

That's a rather interesting use of localtime(). I guess you wanted to
write this instead:

  struct tm *tms;

  tms = localtime (&current_time);


Sven



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