I have a test which is throwing an exception in the static class initialisation. This causes a call to DynamicLibraryManager::getLastErrorDetail. This fucntion fails to check the result of FormatMessageA and the function is then trying to allocate lpMsgBuf (which is null) to a std::string. This causes a very unhelpful "invalid null pointer" error in visual studio.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a test which is throwing an exception in the static class initialisation. This causes a call to DynamicLibraryManager::getLastErrorDetail. This fucntion fails to check the result of FormatMessageA and the function is then trying to allocate lpMsgBuf (which is null) to a std::string. This causes a very unhelpful "invalid null pointer" error in visual studio.