aamir wrote: > >> You have an error on line 42. What is your program doing? Post some >> sample code. > > LOL. In fact my program is about more than 6000 lines and I really > don't know which part may have the problem but I am quite surprised > that it runs normally if i put a printf statement.
It is bad luck, that it does not crash with the printf, too. > > Anyways, after using a debugger it showed me some memory leaks but I > am unable to understand this one. Debugger message is Try to find a minimal example producing the crash, then check if results are exactly what you expect, manually. > Do you get some idea of where the error may be? My guess is, other parts of your structures are not initialized, especially the Left and Right pointers are hot candidates, write a function to visualize the tree and check, whether the tree always is as expected. Basically a debugger should do this, but in our real world this is not really viable, even DDD (data display debugger) does not make this a pleasure. Bernd Strieder _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus