I'm writing in C. My code is simply this in main.c:
#include <stdio.h>
int main(void)
{
printf ("Test\n");
return 0;
}
However, anytime I try to run the program, it fails in two different ways. If I run without debugging, the console window appears like this without changing besides the '_' blinking.
If I run with debugging, whether or not I place a break point, Visual Studios freezes and I have to close it via task manager.
I've noted that it's only programs that I've written since I've had this bug that have this problem. Past projects before I've had this problem all work properly, as well as projects I download.
I've:
- Uninstalled, then reinstalled Visual Studio.
- Run the repair function via Control Panel.
- Tried creating several new projects, and let others create the projects to see if it's just something I'm doing wrong.
- Restarted my computer.
I'm on Windows 10.
EDIT: If I run from the Debug folder it still does not work similarly.
EDIT: Solved! Was a problem with Avast! Antivirus. See @blastfurnace 's comment.