I just needed some advice regarding a bad pointer error I get using MS Visual Studio 2010.
FILE *rawDataFile = fopen("C:\\Data.txt", "rb");
While I am stepping through my code using both Release/Debug mode after the above lined is executed, I always end up getting a < Bad Ptr > declaration when I am watching the variable.
I really have no idea why this is happening, there seems to be no memory corruption happening prior, as far as I see memory is properly allocated.
I would really appreciate any pointers in helping me dig this further?

<Bad Ptr>doesn’t necessarily indicate memory corruption, and it doesn’t necessarily indicate an error. In this case, it just means that the pointer is null, so the debugger is unable to provide any information about the pointed-to object (since the pointer is null, there is no such object).The values of the data members of the
FILEstructure are implementation-defined. In the Visual C++ implementation, these members are sometimes null. This is normal.