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

Pages: [1]
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.


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

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

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

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

sf::Font font;

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]