// Author: Julian Smart
// Modified by: Jurgen Doornik
// Created: 25/01/99
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// we're using TCP/IP or real DDE.
#include "ipcsetup.h"
-#if !defined(__WXMSW__) && !defined(__WXPM__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif
void MyFrame::OnClose(wxCloseEvent& event)
{
- if (m_server)
- {
- delete m_server;
- m_server = NULL;
- }
+ wxDELETE(m_server);
event.Skip();
}
else
{
wxLogMessage("Server %s failed to start", servername);
- delete m_server;
- m_server = NULL;
+ wxDELETE(m_server);
}
UpdateUI();
}
{
if ( m_connection )
{
- delete m_connection;
- m_connection = NULL;
+ wxDELETE(m_connection);
wxGetApp().GetFrame()->UpdateUI();
wxLogMessage("Disconnected client");
}