1
DotNet / Re: SFML window blocking windows form
« on: September 17, 2012, 11:10:24 pm »
Well that's unfortunate.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sfml-graphics-s.lib
sfml-main.lib
sfml-system-s.lib
sfml-window-s.lib
alphaClient.exe!sf::priv::MutexImpl::Lock() + 0x7 bytes C++
alphaClient.exe!sf::Lock::Lock() + 0x10 bytes C++
alphaClient.exe!sf::GlResource::GlResource() + 0x33 bytes C++
alphaClient.exe!sf::Window::Window() + 0x32 bytes C++
alphaClient.exe!sf::RenderWindow::RenderWindow() + 0x2f bytes C++
alphaClient.exe!App::App() Line 6 + 0x31 bytes C++
alphaClient.exe!main(int argc, char * * argv) Line 15 + 0x26 bytes C++
Unhandled exception at 0x777c22c2 in alphaClient.exe: 0xC0000005: Access violation writing location 0x00000004.
for(i = 0; i < 40; i++)
{
for(j = 0; j < 20; j++)
{
if(!gameMap.tileId == 0)
{
int tileId = 0;
currentTile.SetImage(tilesImage);
tileId = gameMap[i][j].tileId;
currentRect.Left = 32 * tileId;
currentRect.Right = 32 + 32 * tileId;
currentRect.Top = 0;
currentRect.Bottom = 32;
currentTile.SetSubRect(currentRect);
currentTile.SetPosition(32 * i, 32 * j);
App.Draw(currentTile);
}
}
}
for(i = 0; i < 40; i++)
{
for(j = 0; j < 20; j++)
{
int tileId = 0;
currentTile.SetImage(tilesImage);
tileId = gameMap[i][j].tileId;
currentRect.Left = 32 * tileId;
currentRect.Right = 32 + 32 * tileId;
currentRect.Top = 0;
currentRect.Bottom = 32;
currentTile.SetSubRect(currentRect);
currentTile.SetPosition(32 * i, 32 * j);
App.Draw(currentTile);
}
}