So, when i write this: [code]renderWindow = new sf::RenderWindow(sf::VideoMode(width, height, bpp), title);[/code]
The thing throws a runtime exception;
Debug:[i]Unhandled exception at 0x75859f11 in Engine.exe: 0xC0000005: Access violation reading location 0xcccccccc.[/i]
Release:[i]Unhandled exception at 0x00e61012 in Engine.exe: 0xC0000005: Access violation reading location 0x4370000c.[/i]
I'm using Visual Studio 2008 and Windows 7.
And i've googled it with no luck.
Are you using debug dll's in release mode or the other way around ?
There's nothing wrong with using debug DLLs in a release-configured program.
Though you probably don't want them if you release clients :P
I read [url=http://redirectingat.com/?id=629X1198&xs=1&url=http%3A%2F%2Fwww.cprogramming.com%2Ftutorial%2Fdebugging_concepts.html&sref=http%3A%2F%2Fwww.facepunch.com%2Fshowthread.php%3Ft%3D999366]this[/url].
What now?
That didn't solve my problem.
Read the follow ups and then debug your program.
Can't you tell me the direct solution?
There might be none.
[editline]11:05PM[/editline]
As in, one would have to experiment with the code first by themselves.
So it's wrong with the code? Can't be. I even tried copying the example code from [url=http://www.sfml-dev.org/tutorials/1.6/graphics-window.php]SFML-dev[/url]. Still gives me the error.
Debugging is always helpful for problems, which cause is not obvious. There's no harm in learning how to deal with this stuff.
I don't know what's wrong, I can't give you a straight forward solution.
Make sure both the SFML libraries and your program are compiled by the same compiler version.
[editline]11:29PM[/editline]
Also, debug or release build shouldn't matter.
Is there a particular reason you're new'ing the window?
You're doing it wrong.
[code]sf::RenderWindow App(sf::VideoMode(800,600),"Lol sup");[/code]
[QUOTE=Anthophobian;24780500]You're doing it wrong.
[code]sf::RenderWindow App(sf::VideoMode(800,600),"Lol sup");[/code][/QUOTE]
Not really.
[IMG]http://img838.imageshack.us/img838/6592/ss20100912190525.png[/IMG][img]http://img838.imageshack.us/img838/3692/ss20100912190604.png[/img]
[QUOTE=Anthophobian;24780500]You're doing it wrong.
[code]sf::RenderWindow App(sf::VideoMode(800,600),"Lol sup");[/code][/QUOTE]
Overloading. Learn it.
Sorry, you need to Log In to post a reply to this thread.