The below part of my code consistently triggers a "Debug Error! abort() has been called" message upon execution in Visual Studio:
if(m_handle==