Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2006

Tip: Looking for answers? Try searching our database.

Error creating window handle - possible causes?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
illegal.prime@gmail.com - 29 Apr 2006 00:37 GMT
So I've taken a perusal through google groups looking for possible
causes of this error.

I've seen answers varying from:
- creating too many Form objects
- creating too many MenuItems in your Forms
- a combination of the above two
- something to do with setting the style on a control

So, I'm looking through my app. to determine what the problem is and I
found a change I made recently was to add this to one of my control's
constructors:
SetStyle(
                ControlStyles.UserPaint |
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.DoubleBuffer, true)

Could this be the cause of my new problems?

Also, what other areas should I be investigating?  Since I would like
to double check the rest of my code for any other possible culprits.

Thanks,
Novice
illegal.prime@gmail.com - 29 Apr 2006 06:02 GMT
Well, to those who are interested, the easiest way (doesn't require you
to buy any software, etc) to diagnose problems of this sort is just to
open task manager, go to Processes, enable the User Objects column and
possibly the Handles, Threads and GDI Objects (though my problem seems
to be in the number of User Objects).

Anyway, once you have task manager open with those columns, watch your
application as those various values increase.

This should help you determine which part of your application is
causing the problem.

I'll post further if I get any more details - but please feel free to
chime in experts.

Thanks,
Novice

> So I've taken a perusal through google groups looking for possible
> causes of this error.
[quoted text clipped - 20 lines]
> Thanks,
> Novice
irinas - 03 May 2006 13:25 GMT
Hi, I have a killing problem with "Error creating window handle". I have this mdiContainer and sometimes when I add a form to the container, at the Show() method I get this error. If I don't set this form as mdi everything goes great. But that is unacceptable.

So what causes this error? I work in .NET 2005 and in .NET 1.0 everythig worked perfectly.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.