Need help!!

When trying to debug my game I consistently get this error and with being quite a noob to Allegro and c++ I don't really have much knowledge to figure out a solution on my own.

Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
on these 2 lines

1
2
3
  *ALLEGRO VARIABLES*
ALLEGRO_COLOR blk = al_map_rgb(0, 0, 0); /* al_map_rgb_f(0.0, 0.0, 0.0);*/
ALLEGRO_COLOR wht = al_map_rgb(0, 0, 0);


I also get a memset.asm not found error.

Here is a pastebin for my main.cpp
http://pastebin.com/fkwa0whH
I don't see those lines in the code that you've provided.
Also, it's useless to just give the main withouth all your custom headers.

> Buttons *bPlay = new Buttons();
http://www.cplusplus.com/forum/general/138037/
Topic archived. No new replies allowed.