I am new to MFC & I am maintaining a MFC Application, Which has a CView Window GUI for displaying and manipulating values of a Tree using CTreeCtrl. All my functionality are working fine but sometimes I am getting a crash. But still I can not identify any pattern for reason of the crash.
Sometimes after some common action like changing values (which I have already performed like 100 times & just worked fine) ,the application hangs or crashes; sometimes for maximizing after 10-15 minutes is causing this .Sometimes the tree text are getting weirdly bold in size and then hangs/crashes. Checking Call stack is of no use till now as it always points to DbgCRT
or some internal MFC source files. It is an MDI application and I have noticed the crash happens when number of files are more or Current file has a large nested tree.
The main problem is I can not reproduce this bug at will. What I do is doing various actions with the tree like adding new nested branches, changing values & After 20-30 min of this crash may happen. Anyone please suggest any possible way of solution of this random occurring bug.
sample gui: http://postimg.org/image/6ed619voh/ "sample"
ADDITION: a snap after it was hanged : http://s7.postimg.org/dn216ufzf/crashtime_snap.png