Hi there, In MITK 2014.03, we could run CL programs that generated .csv files, and this was OK: https://github.com/MITK/MITK/blob/master/Plugins/org.mitk.gui.qt.cmdlinemodules/src/internal/QmitkCmdLineModuleRunner.cpp#L409
i.e. the call to mitk::IOUtil::LoadFiles would fail to read a file with unrecognised file extension, and issue a warning, but continue, like here: https://github.com/MITK/MITK/blob/eb025ddf02d2d7c60eada2f68dab39274420dea8/Core/Code/IO/mitkIOUtil.cpp#L465 Now in 2014.10 and master, it will throw an exception. For example this: https://github.com/MITK/MITK/blob/master/Modules/Core/src/IO/mitkIOUtil.cpp#L675 leads to: https://github.com/MITK/MITK/blob/master/Modules/Core/src/IO/mitkIOUtil.cpp#L565 So, the process is now stricter. What would be your preferred solution? a) Test for a readable file extension in the CLM plugin before trying to load b) Try/Catch in CLM plugin c) Other? Thanks Matt ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
