Author Topic: Having ISSUES with running console apps on Windows 11. Help!  (Read 249 times)

Offline Frank Scrooby

  • Single posting newcomer
  • *
  • Posts: 3
Having ISSUES with running console apps on Windows 11. Help!
« on: April 10, 2024, 05:25:09 pm »
Hi all,

Please forgive me if this message is posted to the wrong forum, or if it has been asked before.

My searching of this site turned up nothing concerning Windows 11, console apps, and CodeBlocks 20.03

I'm doing tiny, little, console apps for an EDX course I want to complete. Like really, really small, nothing bigger than a couple of functions, no big numbers or huge files or anything big.

Code compiles with no complaints.

When I run the program the Windows console pops up but my program does not appear sometimes for seconds but increasingly its more like minutes. One app (about 16 calculations) tooks 3 seconds to run one time and 720 seconds to run the next time.

When I browse into the debug folder and try to run the app from there I get mostly similiar results. Or worse, Windows tells me it doesn't trust my program.

Obviously the solution to my problem would be a nice, neat, compact Linux Distro that is familliar with a newish notebook that has AMD chips. But its not my computer so I can't go changing things like that.

Any help, advice?

If I am being fantastically stupid, please let me know.

regards
Frank Scrooby

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1563
Re: Having ISSUES with running console apps on Windows 11. Help!
« Reply #1 on: April 10, 2024, 06:14:22 pm »
What happens if you open a console and run your program from it?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Having ISSUES with running console apps on Windows 11. Help!
« Reply #2 on: April 10, 2024, 06:24:26 pm »
Hi all,

Please forgive me if this message is posted to the wrong forum, or if it has been asked before.

My searching of this site turned up nothing concerning Windows 11, console apps, and CodeBlocks 20.03

I'm doing tiny, little, console apps for an EDX course I want to complete. Like really, really small, nothing bigger than a couple of functions, no big numbers or huge files or anything big.

Code compiles with no complaints.

When I run the program the Windows console pops up but my program does not appear sometimes for seconds but increasingly its more like minutes. One app (about 16 calculations) tooks 3 seconds to run one time and 720 seconds to run the next time.

When I browse into the debug folder and try to run the app from there I get mostly similiar results. Or worse, Windows tells me it doesn't trust my program.

Obviously the solution to my problem would be a nice, neat, compact Linux Distro that is familliar with a newish notebook that has AMD chips. But its not my computer so I can't go changing things like that.

Any help, advice?

If I am being fantastically stupid, please let me know.

regards
Frank Scrooby

That delay sounds like the windows virus defense system is grabbing the program and scanning it for malware.
You might want to instruct your system to ignore the directory containing your projects.