C++ Access violation reading location 0xcdcdcdcd error on calling a function

前端 未结 5 1017
醉梦人生
醉梦人生 2020-12-06 21:26

Please consider the below scenario:

I have a header file and its corresponding source file:

exmp.h (Header file)

exmp.cpp (

5条回答
  •  不思量自难忘°
    2020-12-06 22:08

    0xcdcdcdcd means uninitialized data.

    This means you're trying to access an uninitialized pointer somewhere.

    Read more about it here:

    Troubleshooting Common Problems with Applications: Debugging in the Real World

    Win32 Debug CRT Heap Internals

提交回复
热议问题