I wrote an application that uses a list control inside a splitter window. It works fine and has for a long time.
Then another engineer made some changes to it, and the new version exhibits a strange problem. When the list view is created using ::CreateWindowEx, the function call returns a NULL hWnd. However, a GetLastError call returns an error of 0 (no error)! The NULL hWnd causes an assertion at application startup.
I have run my old application and the new application side by side, stepping through the code. Everything seems to be the same…. window styles are the same, all other parameters are the same except for things like pointer values and handle values. My old version works fine and the ::CreateWindowEx call returns a valid hWnd. The new version of the application returns a NULL hWnd at the same source code line.
Windows won't allow me to step into ::CreateWindowEx to see what exactly is going on.
We have tried a full rebuild of the code, and tried running it on a different PC. Neither helped. What could be the problem or solution?
Jean Palmer
Northrop Grumman
- [EMAIL PROTECTED]
( (410-993-2627)
_______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
