I've narrowed the seg fault down to 3 lines of code that I've commented out below. If I uncomment any of these lines I get a seg fault.
This is the first time I've tried using CppUnit, so I'm probably not using it right...Code:int main( int argc, char* argv[] ) { if ( argc != 3 ) { std::cerr << "Usage: sample <host> <port>" << std::endl; return 1; } /// Create a new TestSuite & add the sample test. CppUnit::TestSuite testSuite( "Sample Test" ); SampleTest sampleTest( argv[1], argv[2] ); // testSuite.addTest( &sampleTest ); /// Adds the test to the list of test to run CppUnit::TextUi::TestRunner runner; CppUnit::XmlOutputter xmlOutput( &runner.result(), std::cerr ); // runner.setOutputter( &xmlOutput ); // runner.addTest( &testSuite ); runner.run(); return 0; }