ke********@yahoo.com.hk opined:
Actually it is a opengl program using C. and my program and the
animation are running properly. Suddenly it happens.
So, what is going on?
To Roberto Waltman: Crack open the soda. It begins... NOW!
To OP:
Quote context, even yourself. Read the link in my sig -- carefully.
So, what IS going on, then?
Well, my crystal ball (lovingly designed by DS9K, and delivered by a
bunch of flying pigs out of somebody else's UB ridden code) tells me
that you have a memory leak, and that the root cause is on the line
42. Apart from that, there's 17 other instances of Undefined
Behaviour, and 57 `printf()` statements not terminated by '\n'. The
latter are preventing you to see the problem clearly, as there's
actually no output (apart from the error message).
Now, if you want any help, please post a minimal compilable example of
your code, and make sure that the problem is not OS, processor or
compiler extension specific. If any of the previous do not hold, you
should go where the offending one(s) are topical. Here, we discuss
only Standard C, and it knows not of threads, X windows, Y windows, or
even MS Windows.
--
Insults are effective only where emotion is present.
-- Spock, "Who Mourns for Adonais?" stardate 3468.1
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>