debug error in winproc.cpp