In reply to zz8318:
Did you allocate for m_mem dynamic array? What’s the size? Can you post the completed code?