WGL Message:System Error: (1114):dettachMessageHook

The thread ‘Win32 Thread’ (0x7e4) has exited with code 1 (0x1).
The thread ‘Win32 Thread’ (0x5ec) has exited with code 0 (0x0).

WGL Message:System Error: (1114):dettachMessageHook
WGL Message:System Error: (1114):dettachMessageHook
WGL Message:System Error: (1114):dettachMessageHook

The program ‘[1996] ****.exe: Native’ has exited with code 0 (0x0).
what is wrong

I wrote a Program use Visual C++.net
I debug found when the program exit it sometimes turn out error like that above
has anyone meet this problem?
where it is likely wrong?