]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/typetest/typetest.cpp
use struct timeval and not a long to store socket timeout under Unix too
[wxWidgets.git] / samples / typetest / typetest.cpp
index 4b5906cecd140aebc16fb7b61fe16bbda2cc2abe..cbd16a5c030639df7a46f2a0e2eae699aa5220c0 100644 (file)
@@ -166,6 +166,8 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event))
     text_output << str << _T("\n");
     std_file_output << str.ToAscii() << "\n";
 
+    std_file_output.close();
+
     textCtrl.WriteText( _T("\nReading from ifstream:\n") );
 
     wxSTD ifstream std_file_input( "test_std.dat" );