exe has encountered a problem

Hi All,

I'm getting a:
"
exe has encountered a problem and needs to close. We are sorry for the inconvenience. "

I'm getting this after I shut the program down. I'm getting no compiler errors or warnings. I don't know where this is coming from, but I can replicate it by changing this numzombies var. to over 100. 100 or under everything is fine.

Suspect code:

1
2
3
4
5
6
7
8
9
struct undead{
    bool alive;
    int state;
    int x;
    int y;
    int direction;
    int animation;
} zombie[200];
const int numzombies = 200;




closed account (Dy7SLyTq)
what ide + compiler
CodeBlocks 12.11
GNU GCC
closed account (Dy7SLyTq)
could you show all of your code?
...
Last edited on
...
Last edited on
...
Last edited on
closed account (Dy7SLyTq)
just put all in pastebin and post a link
what's pastebin?
closed account (Dy7SLyTq)
http://www.pastebin.com
I found the problem. It was in my badly coded animation frame counters for my zombies...lol
I was counting my frames with:

int frametime[100] = {0};

That would explain my "anything over 100" problem.

I just wish the compiler gave me some sort of warning.

I hope you didn't spend much time on this.
Topic archived. No new replies allowed.