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

Author Topic: Error "WGL Message" on exit  (Read 1836 times)

0 Members and 1 Guest are viewing this topic.

nbd

  • Newbie
  • *
  • Posts: 14
    • View Profile
Error "WGL Message" on exit
« on: February 21, 2014, 03:31:03 pm »
I have a simple test application which does nothing except of creating a new Render window from an existing HWND with the following statement:

Code: [Select]
m_pRendWnd = new sf::RenderWindow( hWnd );
On exit the render window is destroyed as follows:

Code: [Select]
if ( m_pRendWnd ) {
m_pRendWnd->setActive(false);
m_pRendWnd->close();
delete m_pRendWnd;
}

When I start this program and close it, the debugger shows the following message:


Quote
WGL Message:WGL: DDraw: UpdateClipList: GetClipList (1): DDERROR = DDERR_GENERIC

WGL Message:WGL: DDraw: UpdateClipList: GetClipList (2): DDERROR = DDERR_GENERIC

WGL Message:System Error: (1114):dettachMessageHook
Why this message is displayed?
« Last Edit: February 21, 2014, 03:33:33 pm by nbd »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error "WGL Message" on exit
« Reply #1 on: February 21, 2014, 04:15:28 pm »
Where does the HWND come from? How was that window created?
Laurent Gomila - SFML developer

nbd

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Error "WGL Message" on exit
« Reply #2 on: February 21, 2014, 06:06:27 pm »
This is a basic standard Windows application and with a single main window created with

Code: [Select]
hWnd = CreateWindow(
szWindowClass,
szTitle,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
0,
1000 + (GetSystemMetrics(SM_CXFRAME) * 2), // Initial window width
1000 + (GetSystemMetrics(SM_CYFRAME) * 2) +
GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CYMENU), // Initial height
NULL,
NULL,
hInstance,
NULL);

The destruction of SFML RenderWindow is called before calling DestroyWindow(hWnd); for the main (and single) hWnd for which RenderWindow was created.
 

 

anything