int main(int argc, char *argv[])
{
-
- int port = 5011;
- TestClassInterface *tc = new TestClass(3, 5.0, "7911");
- TestClass_Skeleton *tcSkel = new TestClass_Skeleton(tc, port);
+ TestClassInterface *tc;
+ TestClass_Skeleton *tcSkel;
+ try {
+ int port = 5010;
+ tc = new TestClass(3, 5.0, "7911");
+ tcSkel = new TestClass_Skeleton(tc, port);
+ } catch(const exception&) {
+ return EXIT_FAILURE;
+ }
//tcSkel->waitRequestInvokeMethod();
delete tc;