Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [bug-resolved] Corruption of window title under Win32 debug  (Read 4172 times)

0 Members and 1 Guest are viewing this topic.

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
[bug-resolved] Corruption of window title under Win32 debug
« on: March 04, 2008, 06:57:59 pm »
Edit:  NEVERMIND.  I'M ACTUALLY AND IDIOT AND WAS LINKING AGAINST THE RELEASE LIBS IN DEBUG MODE.



Platform:  WinXP
IDE: Visual C++ 2005 express
Build: Debug
To reproduce use the following or similar code:

Code: [Select]
m_pGameWindow = new sf::Window(sf::VideoMode(800, 600, 32), "TestWindow");

while (!m_bQuit)
{
//process events
HandleEvents();


m_pGameWindow->Display();

}


*This will generate a window with the correct tile, but with 4 "garbage" characters before it (ASCII 204 or Ì).  So you get "ÌÌÌÌTestWindow."
*This behavior happens regardless of how you create the window (locally or dynamically as in my example).
*If the title string is 15 characters long, it will generate a window with an empty title.
*If the title string is more than 15 characters long, window creation will fail and cause a crash.
*This does not happen under release build.
*I did not pull down the latest SVN, but I looked at the roadmap page and round no mention of this bug.