I'm not aware of any changes to setwindow. I tested it out here and it's working fine. Are you sure it's the setwindow function. Are there any error messages? You might want to try commenting everything out except for the setwindow call to make sure this is causing the crash.
|