Run into this weird problem. The inherited code has ~ 10 thousand lines.
InsertTreeItem(panel, TREE, .............., NULL);
causes crash ONLY in debug version ! not in release version.
The Tree is defined as an "int", the last parameter (NULL) is invalid, so crash make sense. But ONLY in debug version ?! How could this happen ?
From customer point of view, don't fix it if not broken (and I am not paid to fix bugs. It's a hardware upgrade project.);
from developer point of view, I can't debug this file if not fixed.