Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

WM_NCDESTROY message not received during destroywindow call

$
0
0

Hi,

    I am using vlc browser plugin. The streaming is done using rtsp. After running a sequence of play-stop(10secs between play & stop) for more than 30 mins the stop freezes in destroywindow() call. After debugging I found thatWM_DESTROY is the last message received DirectXEventProc(). Due to this the application freezes. I need to kill the internet explorer before using it again. Under what scenarios doesWM_NCDESTROY message will not get called? Can some one give some inputs? Is there any method to debug this?

Following parameters are used while creating the window.

    /* Create the window */
    p_event->hwnd =
        CreateWindowEx( WS_EX_NOPARENTNOTIFY | i_stylex,
                    p_event->class_main,             /* name of window class */
                    _T(VOUT_TITLE) _T(" (DirectX Output)"),  /* window title */
                    i_style,                                 /* window style */
                    (!p_event->wnd_cfg.x) ? CW_USEDEFAULT :
                        (UINT)p_event->wnd_cfg.x,   /* default X coordinate */
                    (!p_event->wnd_cfg.y) ? CW_USEDEFAULT :
                        (UINT)p_event->wnd_cfg.y,   /* default Y coordinate */
                    rect_window.right - rect_window.left,    /* window width */
                    rect_window.bottom - rect_window.top,   /* window height */
                    p_event->hparent,                       /* parent window */
                    NULL,                          /* no menu in this window */
                    hInstance,            /* handle of this program instance */
                    (LPVOID)p_event );           /* send vd to WM_CREATE */

Regards,

Bala


Viewing all articles
Browse latest Browse all 15302

Trending Articles