Error using ROOT with MS IDE

I’m having a problem using ROOT libraries in the Microsoft Visual C++ 2005 IDE. I’m trying to create a file with ROOT trees that hold stl vectors of integers. The program runs fine until the end of the main function, when the IDE gives a heap corruption error. The source code for the main and the class being stored in the tree is attached. Note that this runs without error if compiled and run outside of the MS Visual C++ IDE. I am currently running ROOT version 5.14
MyClass.h (338 Bytes)
MyClass.cpp (519 Bytes)
main.cpp (498 Bytes)

Hi,
here’s a little list of postings which probably answers this: root.cern.ch/phpBB2/viewtopic.php?t=4736
Cheers, Axel.