Whole system freeze usually means, that very high priority thread (possibly driver one) is being executed, cuz even 50% CPU usage shouldn't freeze your system.
P.S. It was surprise for me, that such minor problem, as uninitialized local variable, can cause video driver to freeze whole system - via drawing lines with extremely wide pens.