Share via

Debug Assertion Failed!

Anonymous
2017-11-24T00:16:54+00:00

Microsoft Visual C++ Runtime Library

                 Debug Assertion Failed!

                 Program:

                 C:\Users\Matthew\Documents\project\homework\debug\homework.exe

                 File:minkernel\crts\ucrt\src\appcrt\stdio\fgets.cpp

                 Line: 33

                 Expression: stream.valid()

                 For information on how your program can cause an asssertion

                 failure, see the Visual C++ documentation on asserts.

                 (Press Retry to debug the application)

                 Abort   Retry  Ignore

                That windows pops in every time i try to run my program in Visualstudio 2017. I would like to read a txt file in but this is always mess up my program. Any idea how to prevent it? (my txt file is in the same file with the source.c)

Moved from: Microsoft Education  / Windows 10  / Security and privacy

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2017-11-24T03:59:36+00:00

    Hi,

    In order to properly assist you with this concern, we highly recommend that you post your query on the Microsoft Developer Network. They are more knowledgeable to this kind of discussions.

    Feel free to post again if you have other concerns.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments