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 - resident-uhlig

Pages: [1]
1
General / [solved] sf::String::Text, memory access violation (read)
« on: March 13, 2009, 05:08:18 pm »
Hello all!

Thank you for your help, Laurent, Laguna and Tank.

Laurent's recommendation was the solution:
Quote from: "Laurent"
The first bug has been fixed, you can try getting the latest sources and recompiling SFML to get the fix.


After downloading SFML 1.5 (SVN: trunk/) and building the libs on my own the first problem is solved.

Though the second one still exists but I think I can live with that because it only happens on program exit and as mentioned by Laurent it will get a fix in SFML 2.

Driver update and loading a font before did not help, btw.

Best regards,
resident-uhlig.

2
General / [solved] sf::String::Text, memory access violation (read)
« on: March 12, 2009, 11:18:43 pm »
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:
Code: [Select]
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:
    Code: [Select]
    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:
    Quote
    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.

      Pages: [1]