Currently, Mac OSX 10.9.5 and
/usr/bin/c++ --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Thanks
M
On 9 Feb 2015, at 19:53, Sascha Zelzer
<[email protected]<mailto:[email protected]>> wrote:
Hi,
before going into details, on which OS and compiler are you getting this?
Thanks,
Sascha
On 02/09/2015 01:23 PM, Clarkson, Matt wrote:
Hi there,
Im trying to change one of our file reader/writes to the new framework.
I have code like this:
mitk::FileReaderRegistry readerRegistry;
std::vector<mitk::IFileReader*> readers =
readerRegistry.GetReaders(mitk::FileReaderRegistry::GetMimeTypeForFile("4x4"));
MITK_TEST_CONDITION_REQUIRED(readers.size() == 1, "Testing for 1 registered
readers”)
that fails (seg fault) on call to readerRegistry.GetReaders(..)
But the GUI program successfully loads/saves these files.
The unit test is for our own file type in our own module.
I based my code on the mitkPointSetReaderTest.cpp. In the diffusion modules
there are examples of new file readers/writers, but no unit tests that i could
find that use the FileReaderRegistry. So, I must be missing something in my
unit test, failing to instantiate some class/service. Is it possible that the
PointSetReaderTest works because the mitkCoreActivator is instantiating a lot
of stuff, whereas my unit test is not? i.e. I dont know what Im supposed to
look for.
Can anyone help? See 2 screenshots of stack trace.
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