Author Topic: File .exe doesn't work  (Read 5165 times)

Offline lorenzo180596

  • Single posting newcomer
  • *
  • Posts: 2
File .exe doesn't work
« on: November 21, 2015, 04:16:44 pm »
Hi everybody. First of all, i apologize for my english, I'm not English.

Then, i have problem when i have to run my program.
I write the code, I build it, but when I run it, it just show the black screen .exe, but with nothing inside and I can't do nothing but close it forcedly.
The strange fact is that this problem came up suddenly, and at the beginning i could run my codes without problem, and i make no changes at the settings.

I just tried to re-install codeblocks, but nothing changed. I use Windows 10.

Thank you:)

I left the screen, so it's easier to understand.


That's the code i want to run:


That's what comes up after i press "run":


That's what comes up after i close the file .exe:

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: File .exe doesn't work
« Reply #1 on: November 21, 2015, 09:39:12 pm »
Are you using avast or avg as anti virus?
we had a lot reports with this problem from people who used anti virus software...
try to deactivate your av, or add a exception for your project folder...

greetings

Offline lorenzo180596

  • Single posting newcomer
  • *
  • Posts: 2
Re: File .exe doesn't work
« Reply #2 on: November 22, 2015, 12:59:22 pm »
Yes, i deactivated Avast and now it works.

Thank you very much for your help:)

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: File .exe doesn't work
« Reply #3 on: November 22, 2015, 08:24:08 pm »
The first time I run various programs, Avast will tell me it's inspecting the file and then after it's done it runs the executable normally.  It otherwise doesn't prevent me from using GUI or console based applications I've built.

JotaPeDias

  • Guest
Re: File .exe doesn't work
« Reply #4 on: November 23, 2015, 11:30:15 pm »
I'm having the same problem, not only with Code Blocks, but with MS Visual Studio too.
I think that windows brought all these problems and issues about permission to us developers.

Offline pofke1

  • Single posting newcomer
  • *
  • Posts: 3
Re: File .exe doesn't work
« Reply #5 on: November 25, 2015, 06:58:06 pm »
Awesome! Was searching threw internet for a week to fix it and finally its working.
« Last Edit: November 25, 2015, 06:59:45 pm by pofke1 »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: File .exe doesn't work
« Reply #6 on: November 25, 2015, 09:16:58 pm »
Please report this also AVG so they can fix their heuristics. And if more user report this to them, they may work this out faster...