Hello all.
I have some problems using sf::String/sf::Unicode::Text in my project. After some hours trying and searching the internet to get it working I am very desperate else I would not have created this thread.
This is my development environment:
SFML 1.4
Code::Blocks 8.02 (mingw)
Windows XP SP3 (en)
So basicly I want to use a new sf::Unicode::Text to fill a new sf::String:
sf::String test( sf::Unicode::Text( "42" ) );
The problem is that I get a memory access violation (read) in this line. I got two solutions for this:
[*] use L"42" instead
[*] log in as Administrator
[/list]
The first one is not acceptable because I have cases in which I only have a char and not a wchar. The second one is not accapteble because I don't want to ask my users of my software to be logged in as Administrator.
Then there is another problem. Even if I get the line above working I will get another memory access violation (read) when the program exits. For this I did not find a solution. This is very simple code that will raise this error aswell:
int main() { sf::String a; return 0; }
Both problems seem to have something to do with this DLL: nvoglnt.dll
That's what I can read from the debugger:
Program received signal SIGSEGV, Segmentation fault.
In nvoglnt!DllMain () (C:\WINDOWS\system32\nvoglnt.dll)
Here are some references that might fit to my problem but without a working solution:
[*]
SFML Forum: Error When Closing Window[*]
SFML Forum: Small bug[*]
Foreign forum: Tackeling segmentation fault (nasty bug is ruining my game)[/list]
Hope you can help me,
resident-uhlig.