473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Hung Auto-Complete Combo Threads

Hi,
I was hoping someone might have some ideas on how I can hack around a problem I'm having with the auto-complete feature of the ComboBox.
I have a data entry application that uses a pair of ComboBoxes on the main entry screen. These are configured to use the Suggest Append auto-complete feature with the List Items as the data source.

Functionally, it works great and really helps speed up the entry process.
However it appears that when my users are pounding in the data, the auto-complete feature leaks memory and/or threads and eventually takes the application down.

I fumbled around for some time with WinDbg and SOS before I figured out the problem.
When I do a !DumpHeap –stat, I find 1325 objects of type System.Windows.Forms.ComboBox+ACNativeWindow

When I do a !GCRoot on one of these I find:
DOMAIN(00159520):HANDLE(Pinned):9413e8:Root:022c42 60(System.Object[])->
01469b7c(System.Collections.Hashtable)->
01503a64(System.Collections.Hashtable+bucket[])

It appears when these auto-complete threads are spawned they are added to a static hashtable inside the ComboBox+ACNativeWindow class. Under certain conditions, these don’t get released and cause the resource leak.

I reported the problem to Microsoft last spring, but my ticket was “Closed Unresolved” because they said that they were focusing on WinFX instead.

I’ve tried:
Explicit garbage collection
Explicit form/control creation/disposal
Manual loading of the list and loading via data binding
And finally manual flushing of the internal hashtable using reflection

This last one changes the !GCRoot from Pinned to WeakLn, but seems to aggravate the thread leak (79 background threads in one dump) and still doesn't release memory.

Anyone have any suggestions (other than throwing out the auto-complete)?
Feb 27 '08 #1
1 1448
daniel aristidou
491 256MB
not sure if it might work but you could try using an external memory cleaning tool. such as the one Iobit offers in its Advance windows care free product
Feb 27 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: vinay agarwal | last post by:
Hi, I am vinay working for Focus Infomatics, Inc as an software engineer. We are facing a small problem with our website www.netemr.com/new. It gets hung very often. We have hosted the site...
1
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the...
0
by: rob_sas | last post by:
I have two Windows Services that log the error 'The <service> service hung on starting'. (EventID 7022) int the System Log of Event Viewer. A few seconds later, they both log the message 'Service...
6
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I...
14
by: | last post by:
Hi All, I am little confused here, hope you can help me. While processing WM_POWERBROADCAST (wParam=PBT_APMQUERYSUSPEND), I MUST to do some lengthy operation(30 sec) before system Suspends or...
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
1
by: SQLScott | last post by:
I am using the System.ServiceProcess methods to look at the status of several services. It will tell me if it is Stopped, Started, etc. But how do I tell if a service is Not Responding, or Hung?...
3
by: yoyo | last post by:
So I get a call from my customer this morning, he tells me the database has hung during the TSM backup and nobody can connect. After tyring a few things, I resorted to db2_kill, and db2start. I...
0
by: Jimmy_wolinski12 | last post by:
http://Lindsay-Lohan-Doing-A-Hung-Guy.info /WindowsMediaPlayer.php?movie=148803 -- Jimmy_wolinski12 ------------------------------------------------------------------------ Posted via...
6
by: Ryan Liu | last post by:
Hi, I have a form, with some user control in it, usually hung up when I call form.Show(). I debug to there, I found in Visual Studio 2003, the call stack is empty! And CPU is not busy at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.