Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 4th, 2005, 01:16 PM
Registered User
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error creating window handle

I have a MDI windows app. One of the forms has a combo-box that is bound to a field in a dataset using the displaymember property. When the form is instantiated, I get an System.Outofmemory exception saying "Error creating window handle".

If I try to bind the combo-box to another field in the data set it works fine. Anyone know what the problem is?

Thanks,
SM
 
Old January 18th, 2006, 06:30 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dommurphy21
Default

Obviously a bit late but the error is because windows has a limit of 1000 windows handles so I presume your data grid returns more than 1000 or near enough rows. You need to reuse the same object rather than creating a new checkbox every time.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to indicate Window Handle Error ponn_arun C# 1 May 27th, 2007 11:34 PM
obtaining handle of the window C# nirmal_thapa C# 0 January 30th, 2007 09:10 AM
Error creating window handle. ColdFusion C# 1 May 15th, 2006 09:57 AM
Error creating window handle Bob Bedell Pro VB.NET 2002/2003 2 July 30th, 2004 09:27 AM
How to handle this error Maxood Classic ASP Databases 2 June 27th, 2004 02:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.