I just completed a project and I thought that I was done and now I am getting an exception thrown that says:
Exception thrown at 0x7793D9CB (ucrtbased.dll) in Project18.exe: 0xC0000005: Access violation reading location 0xCCCCCCBC.
This gets thrown in my destructor and now I have a green squiggly line from visual studio and when I put the cursor over it, it says that ptr (pointer used as a c-string) is uninitialized. I set up my pointer exactly how my instructor did in his example so I cannot make sense of what this all means and how to fix it.
I figured it out. Got rid of the if statement above and noticed that my return statement in my = function was in the wrong place. Seems to be working good now.