Does it crash even if you step the complete code?
Just another observation, add a "delete prov", in the for loop;
Does it crash even if you step the complete code?
Just another observation, add a "delete prov", in the for loop;
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Well it is a complete code, it misses only main.cpp which is generic and stdhdr.h which only has various includes. If by the complete code you mean the main program I'm doing than it crashes in a somewhat different place but with the same syptoms.
And if by step you mean pressing f10 (sorry, I'm pretty new to programmers' forums) then yes, it does. It gives me munmap_chunk(): invalid pointer error if that helps
Good idea. It didn't solve the problem but thanks
Last edited by WereWind; 5th February 2013 at 08:52.
It was not to solve the crash problem, It was just to avoid memory leakGood idea. It didn't solve the problem but thanks
One last thing which I can suggest is, Make sure you Clean All, and Rebuild the code a fresh. (I insist make sure you are using correct file paths to build)
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Bookmarks