summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/chat/ChatClientDlg.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2006-07-24 05:29:21 +0000
committerMichi Henning <michi@zeroc.com>2006-07-24 05:29:21 +0000
commitf952815223ce463f220620fb4ebed94937bca067 (patch)
tree29a82e4aa5bac752b689c6f7f945c0349415ddb9 /cppe/demo/IceE/chat/ChatClientDlg.cpp
parentWin32 fixes (diff)
downloadice-f952815223ce463f220620fb4ebed94937bca067.tar.bz2
ice-f952815223ce463f220620fb4ebed94937bca067.tar.xz
ice-f952815223ce463f220620fb4ebed94937bca067.zip
Made destructor of Shared and SimpleShared protected. Fixed a few code bugs
in ChatC demo. Fixed a project settings for ChatC demo.
Diffstat (limited to 'cppe/demo/IceE/chat/ChatClientDlg.cpp')
-rw-r--r--cppe/demo/IceE/chat/ChatClientDlg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cppe/demo/IceE/chat/ChatClientDlg.cpp b/cppe/demo/IceE/chat/ChatClientDlg.cpp
index 6300d3ce0fc..dac708e05b0 100644
--- a/cppe/demo/IceE/chat/ChatClientDlg.cpp
+++ b/cppe/demo/IceE/chat/ChatClientDlg.cpp
@@ -366,7 +366,7 @@ CChatClientDlg::OnLogin()
//
// Create a ping thread to keep the session alive.
//
- _ping = new SessionPingThread(_chat, _router->getSessionTimeout() / 2);
+ _ping = new SessionPingThread(_chat, (long)_router->getSessionTimeout() / 2);
_ping->start();
}
catch(const Glacier2::CannotCreateSessionException& ex)
@@ -412,7 +412,8 @@ CChatClientDlg::OnLogin()
AfxMessageBox(CString(ex.toString().c_str()), MB_OK|MB_ICONEXCLAMATION);
}
- _adapter->destroy();
+ _adapter->deactivate();
+ _adapter->waitForDeactivate();
_router = 0;
}