Codebase list libgdf / bf573f6
fixed a bug that prevented gdf files from being written under some circumstances. git-svn-id: https://libgdf.svn.sourceforge.net/svnroot/libgdf/trunk@41 00a3b082-7228-46c3-a6fa-0e10d54cf57f Martin Billinger 13 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7575 }
7676 }
7777
78 m_file.clear( );
79
7880 m_file.open( m_filename.c_str(), std::ios_base::out | std::ios_base::binary | std::ios_base::trunc );
81
82 if( m_file.fail() )
83 {
84 throw std::invalid_argument( "Error opening file for writing." );
85 }
7986
8087 m_eventbuffermemory = flags & writer_ev_memory;
8188 if( m_eventbuffermemory )