← Back to team overview

yade-dev team mailing list archive

[Bug 499254] [NEW] no error saving simulation to nonexistent file

 

Public bug reported:

Saving simulation to nonexistent file such as O.save('/nonsense.xml'),
but contrary to expectations, the out.good() check in
IOFormatManager::saveToFile doesn't probably check what it is expected
to. Saving reports no error at all, but reloading the simulation
subsequently causes crash (O.reload()).

Find way to check the boost::iostreams sink that it is really writable.

** Affects: yade
     Importance: High
         Status: New

** Changed in: yade
   Importance: Undecided => High

-- 
no error saving simulation to nonexistent file
https://bugs.launchpad.net/bugs/499254
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: New

Bug description:
Saving simulation to nonexistent file such as O.save('/nonsense.xml'), but contrary to expectations, the out.good() check in IOFormatManager::saveToFile doesn't probably check what it is expected to. Saving reports no error at all, but reloading the simulation subsequently causes crash (O.reload()).

Find way to check the boost::iostreams sink that it is really writable.





Follow ups

References