I'm getting this nasty 'error creating window handle' during the startup itself i.e the login form. I would have looked into the optimizing the controls if it would have come after the UI is up. This is coming during the load of first form which basically has only login & password textbox controls.
The program is C# winforms.