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

Pages: [1]
1
Graphics / Re: Drawing text - Unhandled exception
« on: April 21, 2015, 05:01:00 pm »
Major: 3 Minor: 3
Vendor: NVIDIA Corporation
Renderer: GeForce 310M/PCIe/SSE2

2
Graphics / Re: Drawing text - Unhandled exception
« on: April 20, 2015, 09:50:51 pm »
Yay, it works  :)

Thanks for the help.

3
Graphics / Re: Drawing text - Unhandled exception
« on: April 20, 2015, 07:53:18 pm »
It's Lenovo z560 laptop and it doesn't have the optimus technology.

4
Graphics / Re: Drawing text - Unhandled exception
« on: April 20, 2015, 07:41:21 pm »
GPU - NVIDIA GeForce 310M
driver: newest one,  341.44

Zsbzsb code returns:
Major: 1 Minor: 1
Vendor: Microsoft Corporation
Render: GDI Generic

Which shows that somehow I don't have the correct drivers but

OpenGL Extension Viewer shows
Renderer: GeForce 310M/PCIe/SSE2
Vendor: NVIDIA Corporation

and rendering test run on 3.3 in this program works properly


EDIT: If I put the zsbzsb code after the mainloop(after closing the window) instead after RenderWindow it returns:
Major: 2 Minor: 0
Vendor: GeForce 310M/PCIe/SSE2
Render: NVIDIA Corporation

Also RenderWindow returns "Failed to share the OpenGL context" - I probably should have mentioned that earlier

5
Graphics / Re: Drawing text - Unhandled exception
« on: April 20, 2015, 05:58:23 pm »
I've tested my "project" on another pc and it works there.

My GPU driver is up to date but as far I remember I had some problems with it on this notebook and never pinpointed what exactly is wrong. It never bothered me since I don't use it for anything else beside college stuff. Guess I will have to use the other PC.

Thanks anyway  ;)

6
Graphics / Re: Drawing text - Unhandled exception
« on: April 20, 2015, 04:00:35 pm »
From the site: http://www.sfml-dev.org/download/sfml/2.2/
Visual C++ 12 (2013) - 32-bit

7
Graphics / Drawing text - Unhandled exception
« on: April 20, 2015, 03:21:23 pm »
Hello,

I have problem with drawing both text and sprites.
I can draw shapes without problems but when trying to draw text I'm getting following:

Quote
Unhandled exception at 0x74FCCB49 in SFML learning.exe: 0xC0000005: Access violation executing location 0x00000000.

and from the debug output
(click to show/hide)

I'm using VS2013, the correct version of .dll(debug ones). The code is from tutorials/example code in API doc.
I have no clue what is wrong and knowing life there will be easy fix but I just don't see it So I need your help  ;)

Code: [Select]
#include <SFML/Graphics.hpp>

int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");

sf::Font font;
if (!font.loadFromFile("arial.ttf"))
return EXIT_FAILURE;


sf::Text text("Hello SFML", font, 50);

while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}

window.clear();
window.draw(text);
window.display();
}

return 0;
}
}

Pages: [1]
anything