memset(m_pBuffer,0,sizeof(m_pBuffer));
warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
memset(m_pBuffer,0,sizeof(m_pBuffer));
^