summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_1269_Regression/Server_Timer.cpp')
-rw-r--r--TAO/tests/Bug_1269_Regression/Server_Timer.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/TAO/tests/Bug_1269_Regression/Server_Timer.cpp b/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
index 62a493c18fe..858ef4d973c 100644
--- a/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
+++ b/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
@@ -28,17 +28,23 @@ Server_Timer::activate (void)
int
Server_Timer::handle_timeout (ACE_Time_Value const &, void const *)
{
- ACE_DECLARE_NEW_CORBA_ENV;
+ Test::Payload pload(1024);
+ pload.length(1024);
- Test::Payload pload(1024); pload.length(1024);
ACE_OS::memset(pload.get_buffer(), pload.length(), 0);
+
+ ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- Test::Echo_var echo = Test::Echo::_duplicate(this->echo_.in());
- if(CORBA::is_nil(echo.in()))
+ Test::Echo_var echo =
+ Test::Echo::_duplicate (this->echo_.in());
+
+ if(CORBA::is_nil (echo.in()))
return 0;
- echo->echo_payload(pload);
+ echo->echo_payload (pload
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
ACE_Time_Value tv (0, 20000);
this->reactor()->schedule_timer (this, 0, tv);