0xc0000005 c++

场景:C++ 调试时弹出0xC0000005,请教该怎么处理

C++ 调试时弹出0xC0000005,请问该怎么办
0xc0000005 c++0xc0000005 c++
这个问题已经困扰我两天了0xc0000005 c++

------解决方案--------------------
0xcdcdcdcd
The 0xcdcdcdcd bit pattern indicates that this memory has been initialised by the memory allocator (malloc() or new) but has not been initialised by your software (object constructor or local code).

你使用了没有初始化的指针

http://www.softwareverify.com/memory-bit-patterns.php
------解决方案--------------------
排查代码。不行就设断点跟踪
------解决方案--------------------
Entity类没有实例化吧?
否者指针m_sprite在Entity类的构造函数中已经赋空了,也不至于在那一行就报错