Got an error code 0x80000005 or Invalid Pointer while testing code

Hi Gurus!
I was a newbie programmer and I was testing a simple code when I got this error code. I used Error Goblin to find out the meaning of the code and it just said Invalid Pointer.

Error Goblin
Look up any Windows error code tofind out what it actually means
0x80000005
Error Code: 0x80000005
Description:Invalid pointer
Can anyone from this forum help me on how to resolve this error?
Thanks for the help.
