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

Author Topic: Release Errors  (Read 2552 times)

0 Members and 1 Guest are viewing this topic.

TheEnigmist

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Release Errors
« on: March 08, 2012, 11:37:48 pm »
My game work well when run it in debug mode (with and without debugging it) but when i switch to release i get some errors! I work on VS 2010!
Code:
Code: [Select]
#include <SFML/Graphics.hpp>

int main()
{
sf::RenderWindow App(sf::VideoMode(1024,768,32),"Test TEST tt",sf::Style::Close);
App.SetFramerateLimit(300);
sf::Font TestFont;
//TestFont.LoadFromFile("segoesc.ttf");
while(App.IsOpen()){
sf::Event events;
while(App.PollEvent(events)){
if (events.Type == sf::Event::KeyPressed && events.Key.Code == sf::Keyboard::Escape)
App.Close();
}
App.Clear(sf::Color::Blue);
App.Display();
}
return EXIT_SUCCESS;
}

So i made a little code for testing it and i discovered this:
sf::RenderWindow give this error when has a space into the title:
Quote
Eccezione non gestita a 0x7592feb8 in test.exe: 0xC0000005: Violazione di accesso nella lettura del percorso 0x53455420.

Error pointer:
Code: [Select]
-> sf::RenderWindow App(sf::VideoMode(1024,768,32),"Test TEST tt",sf::Style::Close);
If i put a title like "Test" it works well!
Now the second error. When i try to load a font i get this error:
Quote
Eccezione non gestita a 0x571c37ef (msvcr100d.dll) in test.exe: 0xC0000005: Violazione di accesso nella lettura del percorso 0x2e637365.

Error pointer in fopen.c:
Code: [Select]
-> if(*file==_T('\0'))
        {
            errno=EINVAL;
            return NULL;
        }


How can i fix these errors?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Release Errors
« Reply #1 on: March 08, 2012, 11:46:08 pm »
Have you recompiled SFML? (and are you sure that you're using the recompiled binaries?)

Are you sure that you're not linking to debug libraries in release mode?
Laurent Gomila - SFML developer

TheEnigmist

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Release Errors
« Reply #2 on: March 08, 2012, 11:56:12 pm »
Quote from: "Laurent"
Have you recompiled SFML? (and are you sure that you're using the recompiled binaries?)

Are you sure that you're not linking to debug libraries in release mode?

I'm a fucking noob  :oops:
I was using my SFML Custom .props and in linker there was debug libs and release toghether XD
Now work well!
There is a way to split a .props for debug version and release version?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Release Errors
« Reply #3 on: March 09, 2012, 12:12:56 am »
Quote
There is a way to split a .props for debug version and release version?

I don't know, I don't use VS2010.
Laurent Gomila - SFML developer