• Advertisement

Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Has anyone had this Debug Error in VC++?

This topic is 6751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I think when you try to read from a NULL file it will abort in fgetc.c, at least it's done that to me:

FILE *tfp = NULL;
char tstr[190];
fgets(tstr, 7, tfp);

It might even do this when tfp is initialized to something besides NULL (like cbcbcbcbcb).
-ns

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I was wondering if anyone has had a Debug error saying it was in fgetc.c before, my program would then lock up, Ive checked how I used fgetc and it looks alright,
If anyone knows anything please let me know :-),
Thanks,

Share this post


Link to post
Share on other sites

  • Advertisement