Hello all, im not sure if that problem is connected with SFML but it appears when im using one of SFML classes so maybe ill try to ask here
First some code:
sf::Vector2f *gridpoints = new sf::Vector2f[15];
sf::Vector2f *bfn = new sf::Vector2f[15];
for (i=0; i<16; i++)
{
bfn[i].x=sf::Randomizer::Random(-1.0f,1.0f);
bfn[i].y=sf::Randomizer::Random(-1.0f,1.0f);
}
when i execute this code im getting error:
glibc detected *** malloc(): memory corruption
im using ubuntu precise pangolin but under windows program crashes also but without any error message, i cant see anything wrong in above code and im fairly sure that that fragment of code is a reason for application to crash. Any help will be really appreciated
Kuba