You use the debugger. Stack overflow usually comes from uncontrolled recursion, or trying to allocate a huge block of memory on the stack. Does your class contain a large array or other chunk of memory like that?