1
Graphics / App crashes if more than 1 sprite used
« on: August 19, 2009, 01:07:04 pm »
Okay, just tested something. If I create the images on the heap memory, it works fine:
Now I am totally confused x_x
Code: [Select]
Image *i_one = new Image;
if( !(*i_one).LoadFromFile("test.png") )
return EXIT_FAILURE;
Sprite s_one(*i_one);
Image *i_two = new Image;
if( !(*i_two).LoadFromFile("test.png") )
return EXIT_FAILURE;
Sprite s_two(*i_two);
Now I am totally confused x_x