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 - wormpattern

Pages: [1]
1
Window / Re: [sf::Videomodes] - Cant get modes into vector
« on: October 21, 2012, 11:52:17 pm »
Correct, I didnt used static libs.

2
Graphics / Re: [sf::Font] Memory violation
« on: October 21, 2012, 11:41:15 pm »
Hello,

You are absolutly right I didnt used static libs. My fault and thanks for help.

3
Graphics / Re: [sf::Font] Memory violation
« on: October 21, 2012, 08:36:25 pm »
Hello, its VS 2010 express. I didnt recompile it actualy, just took as it is.

4
Window / [sf::Videomodes] - Cant get modes into vector
« on: October 21, 2012, 07:59:55 pm »
Have you ever run into issue where function in SFML 2 to get availiable modes returns you:

availiableVideoModes [3]({width=3131961357 height=3131961357 bitsPerPixel=3131961357 },{width=3131961357 height=3131961357 bitsPerPixel=3131961357 },{width=3131961357 height=3131961357 bitsPerPixel=3131961357 }) std::vector >
max int values in vector? Interesting is why 3? I tried quick debugging without luck so in parallel I thought to raise question here.

code:

    std::vector<sf::VideoMode> availiableVideoModes;
    availiableVideoModes = sf::VideoMode::getFullscreenModes();
interesting is that

    desktopVideoMode = sf::VideoMode::getDesktopMode();
returns correct value.

5
Graphics / [sf::Font] Memory violation
« on: October 21, 2012, 07:58:22 pm »
Hello,

I am getting memory access error while trying to run code (SFML 2.0):

sf::Font font;
font.loadFromFile("arial.ttf");

Unhandled exception at 0x6d5a1f16 in test.exe: 0xC0000005: Access violation reading location 0x003b2000.

from debugger:
+      font   {m_library=0xbaadf00d m_face=0xbaadf00d m_streamRec=0xbaadf00d ...}   sf::Font

font file is present and accessible.

Any idea on it?


Pages: [1]
anything