Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8422475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:27:26+00:00 2026-06-10T03:27:26+00:00

I just needed some advice regarding a bad pointer error I get using MS

  • 0

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?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:27:28+00:00Added an answer on June 10, 2026 at 3:27 am

    <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 FILE structure are implementation-defined. In the Visual C++ implementation, these members are sometimes null. This is normal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just needed to include windows office 2010 Ribbon bar into my C# application(Not
** EDIT ** Nevermind, just needed to take out the parens... I get this
I would like to get some advice on structuring my javascript code and jquery
Need some advice again please. This is regarding a single developer shop. I have
Just updated from xcode 4.1 to 4.3 because I needed some functions. But now
Just wanted to ask some advice when building a database with mongodb, I have
Just now I needed to do something like the following query, and was surprised
Just a simple but very often needed operation - how to prepend a string
just wondering if there is a way to reduce the amount of code needed
I'm just trying to install everything needed to start messing with ADO in MSVC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.