The structural stability of carbon nanocages, fullerens and toroids, have been investigated by performing molecular-dynamics computer simulations. The systems considered are C120 and C240 in ball and toroidal structures. Calculations have been realized by using an empirical many-body potential energy function for carbon. It has been found that C120 ball is very unstable, and the other structures are relatively more strong against heat treatment.