

What should this tell me about the crash?Īlso, do i have to manually free the c++ vectors by using clear() ? Or are they freed after usage automatically, for example if i allocate vector inside a function, will it be freed every time the function has ended ? I am not storing pointers in the vector. Also the program loading became exponentially slower every time i loaded the files first few loads didnt seem much slower from each other, but then it started rapidly doubling the load speeds. I watched the task manager memory usage, and just before it crashed it started to eat 2 times more memory than usual. I have createn a "safe" free() function, it checks the pointer if its not NULL, and then frees the memory, and then sets the pointer to NULL. It crashes at random times while and after the reading process. The program crashes after i make it to process the same files about 5 times in a row, each time it uses about 200 megabytes of memory in the process. But luckily the previous version doesnt crash, so i could just copypaste some code and waste 10 hours to see at which point it starts crashing. I cant remember what changes i made to the program that may cause the crashes, its been so long time. The bad thing on this crash is that it crashes only after a long time of using the program, so i can only guess what is the problem. so i am getting really paranoid what can cause crashes now. Recently i noticed some opengl calls crashes programs randomly on some gfx cards. I'm getting tired of guessing whats causing the crashes.
