Error creating Window Handle

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    Error creating Window Handle

    Some end users are getting the following message after being in the
    application for quite some time.

    Exception Type: System.Componen tModel.Win32Exc eption
    NativeErrorCode : 14
    ErrorCode: -2147467259
    Message: Error creating window handle.
    TargetSite: Void CreateHandle(Sy stem.Windows.Fo rms.CreateParam s)
    HelpLink: NULL
    Source: System.Windows. Forms

    The only way I have been able to duplicate this is to open up approx. 50
    forms simultaneously. I understand that there is a limit of 10000 handles
    per process.

    I would think the window handles would be destroyed when the form is closed.
    I guess the real question is there a way to manually close a window handle.

    If not, is there any good informatin someone could direct me to to
    understand how window handles are closed and when.

    Thanks
Working...