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.


Messages - evilertoaster

Pages: [1]
1
General / Access Violation when running
« on: June 20, 2009, 01:07:41 am »
Haven't tried the XP/2005 box yet, but on the 2008/2010 box I found something interesting...
If you go to the property page for the VS project, under the "General" section there is an option for "Platform Toolset". The default option is "v100" but if you change it to "v90" the program runs fine... I'm not sure exactly what this option entails or why it does that...but a warning to VS 2010 users.

2
General / Access Violation when running
« on: June 19, 2009, 11:47:12 pm »
Hum, I changed VS to release mode and recompiled but it still does the same thing-
Quote
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 '[4216] SFMLTest.exe: Native' has exited with code 0 (0x0).


edit: Compiling in Debug mode with the debug libraries does work, but not release mode with the release libraries...

3
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?

4
General / This application has failed to start because the application
« on: February 12, 2008, 08:41:29 pm »
are you sure you're using \lib\vc2008\static or \lib\vc2008\dynamic for your library locations and not \lib\vc2005\static or \lib\vc2005\dynamic?

5
Window / GetMouseX() always returning 0
« on: February 11, 2008, 09:21:07 pm »
Works like I wanted. Thanks Laurent.
Actually, thats more what I wanted initially I think...
I kept trying
Code: [Select]
sf::Input::GetMouseX() but I beleive
Code: [Select]
App.GetInput().GetMouseX() is what I was after  :?
Although now looking at it maybe I'll just declare a variable like....
Well anyways, thanks agian  :D

6
Window / GetMouseX() always returning 0
« on: February 11, 2008, 09:50:23 am »
the first line of code on my intial post is the first and only time I initalize it.

7
Audio / sf::Music on windows Vista plays in a loop
« on: February 11, 2008, 08:32:47 am »
does the sound file itself play on both systems?
are you running the program as administrator on vista?

8
Window / GetMouseX() always returning 0
« on: February 11, 2008, 08:13:47 am »
sure thing-

Code: [Select]
bool DoEvents(sf::RenderWindow &App)
{
sf::Event Event;
while (App.GetEvent(Event))
{
   if (Event.Type == sf::Event::Closed)
exit(0);
if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
exit(0);
}
return true;
}

9
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]