I have recently started writing programs in Dev C++. When I am running the output EXE file of certain CPP programs (especially those dealing with arrays or pointers), Avast is preventing the file from running (exe files opens and then closes quickly after showing a message from Avast). Even though, I have added the folder under Global exclusion list & exclusion under File system Scan, Avast is still preventing the EXE file from running. I know this question goes around a while and I have read the same issue with some other antiviruses as well. I have also read threads which says that exclusion had worked fine in older versions of Avast but not in a newer version. Since, I am not sure what might be the fix for my version of Avast, I am mentioning it here (8.0.1489.300).
As for the error message: It was initially showing a message box (blue in color) which appear and quickly disappeared. This message box appeared and disappeared for couple of times I tried running the program and thereafter I didnt get that message but the exe file gets automatically terminated with the typical windows error message (shown in the screenshot attached).
I have also added the screen shot of the locations where I have added the exclusions.
As I mentioned, the message just appeared and quickly disappeared. The only visible feature I remember of the box was that its background color was blue. The box appeared only for the initial couple of times and thereafter I was getting the error message from windows (attached earlier).