C Run-Time Error R6024

not enough space for _onexit/atexit table

There was no memory available for the _onexit or atexit function. This error is caused by a low-memory condition.