Error while writing into a File; after certain file size
Hi all,
I am executing a C program that writes into a file. I get the following error after the file reaches certain size ( < 0.4 GB).
10 [main] anj3 4872 _cygtls::handle_exceptions: Error while dumping state (
probably corrupted stack)
Segmentation fault (core dumped)
It always happens when the size of the file is too big. Is it because of too big a file if so how can I let my program know the file needs to be Big enff.
If not what else could be wrong.
Note: I use a loop that executes at least 4000 times and each time it writes 1000000 or more chars into the file.