diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-29 18:21:45 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-29 18:21:45 +0000 |
commit | 3d0cb09490ba74aead2109a318fb3a049c2699db (patch) | |
tree | 158b525a4eb7d6e9cff9478320e30a68729eb728 | |
parent | 3053aad589a5cb82ce4b6f934ea5d32e176553b1 (diff) | |
download | ATCD-3d0cb09490ba74aead2109a318fb3a049c2699db.tar.gz |
(main): dynamically allocate the Test_ECG instance so that a large stack space isn't required
-rw-r--r-- | TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp index a47de3695c4..e8b38e20e75 100644 --- a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp +++ b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp @@ -1632,8 +1632,15 @@ Test_Consumer::disconnect_push_consumer (CORBA::Environment &) int main (int argc, char *argv []) { - Test_ECG test; - return test.run (argc, argv); + Test_ECG *test; + // Dynamically allocate the Test_ECG instance so that we don't have + // to worry about running out of stack space if it's large. + ACE_NEW_RETURN (test, Test_ECG, -1); + + const int status = test->run (argc, argv); + + delete test; + return status; } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) |