What's with all the 'new' statements?
Are you a recent convert to C++ from Java?
Your code has loads of memory leaks.