Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crash in USER.EXE

Status
Not open for further replies.

Nosferatu

Programmer
Jun 9, 2000
412
0
0
RO
The crash is generated with a call to DestroyWindow(HWND), and the window still has input focus (that would mean the caret is still in the window -and blinking...-).

Anybody has any idea why that hapens?

The window is placed on a toolbar, and the whole program is based on winAPI only, no COM objects at all.
 
Could be your HWND value is invalid. Just a wild guess with nothing to go on.

-pete
 
I'm sure that the HWND is invalid but how can i figure out why that happens???
I've printed its value, but how do i know that it is valid or not? It's just a number, after all. Are there any functions that can tell me that?
 
IsWindow
The IsWindow function determines whether the specified window handle identifies an existing window.

BOOL IsWindow(
HWND hWnd // handle to window
);


Good luck
-pete
 
Before you must kill fokus in the windiw, after you can kill it :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top