diff options
Diffstat (limited to 'TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp')
-rw-r--r-- | TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp index 9d66f688430..85bc57cf0cd 100644 --- a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp +++ b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp @@ -268,18 +268,20 @@ Client::priority_invocations (int debug Worker_Thread **workers = 0; - ACE_NEW (workers, - Worker_Thread *[priorities.size ()]); + ACE_NEW_THROW_EX (workers, + Worker_Thread *[priorities.size ()], + CORBA::NO_MEMORY ()); for (i = 0; i < priorities.size (); ++i) { - ACE_NEW (workers[i], - Worker_Thread (*this, - this->test_.in (), - this->current_.in (), - priorities[i])); + ACE_NEW_THROW_EX (workers[i], + Worker_Thread (*this, + this->test_.in (), + this->current_.in (), + priorities[i]), + CORBA::NO_MEMORY ()); long flags = THR_NEW_LWP | |