Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Topics - evilertoaster

Pages: [1]
1
General / Access Violation when running
« on: June 19, 2009, 11:05:19 pm »
I have this same problem on 2 computers trying to get the SFML (1.5) examples to work.

One computer using windows XP SP3 and VS 2005, the other using Windows Server 2008 and VS 2010 (with the 2008 SDK). In both cases I'm using dynamic libraries.

The simple code -
Code: [Select]
#include <SFML/Window.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
}

Crashes with the following error in VS2010-
Quote
First-chance exception at 0x76775dbe in SFMLTest.exe: 0xC0000005: Access violation reading location 0x6e695720.
A buffer overrun has occurred in SFMLTest.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.

For more details please see Help topic 'How to debug Buffer Overrun Issues'.
The program '[5372] SFMLTest.exe: Native' has exited with code 0 (0x0).


Anyone have an idea what could be wrong?

2
Window / GetMouseX() always returning 0
« on: February 11, 2008, 05:48:52 am »
Per Subject-
I'm trying to make the current mouse position display in my render window for debuging purposes.
Essentially I have this for my main loop-
Code: [Select]

sf::Input inpt;
sf::String text("","arial.ttf",16.f);
while (1)
{

text.SetText(Convert::toString(inpt.GetMouseX())); //custom conversion works fine, GetMouseX only returns a 0
DoEvents(App); //handles things like window closing ect.
App.Draw(sprScreen); //my main screen
App.Draw(text)
App.Display();
}


Short of posting all the code here, is there anything inherently wrong with trying to get the mouse coordiantes this way?

Pages: [1]
anything