some fixes in TestSocketServer()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-16 01:04:50 +00:00
parent 8a9c22462a
commit 9fc3cba7fa
2 changed files with 6 additions and 2 deletions

View File

@@ -785,6 +785,8 @@ static void TestSocketServer()
delete socket; delete socket;
} }
delete server;
} }
static void TestSocketClient() static void TestSocketClient()
@@ -2606,9 +2608,9 @@ int main(int argc, char **argv)
#endif // TEST_MIME #endif // TEST_MIME
#ifdef TEST_SOCKETS #ifdef TEST_SOCKETS
if ( 1 )
TestSocketServer();
if ( 0 ) if ( 0 )
TestSocketServer();
if ( 1 )
{ {
TestSocketClient(); TestSocketClient();
TestProtocolFtp(); TestProtocolFtp();

View File

@@ -282,7 +282,9 @@ void MyCanvas::OnDraw(wxDC& dc)
dc.DrawRoundedRectangle(150, 150, 100, 50, 20); dc.DrawRoundedRectangle(150, 150, 100, 50, 20);
dc.DrawEllipse(250, 250, 100, 50); dc.DrawEllipse(250, 250, 100, 50);
#if wxUSE_SPLINES
dc.DrawSpline(50, 200, 50, 100, 200, 10); dc.DrawSpline(50, 200, 50, 100, 200, 10);
#endif // wxUSE_SPLINES
dc.DrawLine(50, 230, 200, 230); dc.DrawLine(50, 230, 200, 230);
dc.DrawText("This is a test string", 50, 230); dc.DrawText("This is a test string", 50, 230);