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:0 22c4260(System. Object[])->
01469b7c(System .Collections.Ha shtable)->
01503a64(System .Collections.Ha shtable+bucket[])
It appears when these auto-complete threads are spawned they are added to a static hashtable inside the ComboBox+ACNati veWindow 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)?
1 1480
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 on a high end dell server but
still it gets hung.
|
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 page the way I
want. Does anybody know a solution for this?
First of all, the code I am using:
CSS
-------
body {
|
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 started successfully' in the Application Log of Event Viewer.
This only happens on bootup. It doesn't happen when I stop/start the service after bootup.
I read somewhere that this can happen when the .NET libraries take too long to load (> 30...
|
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 do with the 1st column ? (Below
I have a "1" in place for now). Also, Does the datase.AcceptChanges();
updates the changes to the database? Which command do I use to update the
changes in dataset back to the Access database table? Thanks, Alpha...
|
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 hibernates. To
achieve this, in my message handler when processing
PBT_APMQUERYSUSPEND, I create another thread which takes
care of making this lengthy operation, and when its done I
| |
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
CurrentUICulture to what's specified in the querystring. Since I want to
allow UICulture auto detecting, I add UICulture = "auto" to page directive on
each page.
|
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?
TIA...
--
Thanks,
Scott
|
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 don't feel this was the best solution, but since the database was in
quiesce'd mode there wasn't much else I could think of off hand.
I'm not the guy who wrote the backup routine, but he quiesce's it, then
backups it up and then unquiesce's it....
|
by: Jimmy_wolinski12 |
last post by:
http://Lindsay-Lohan-Doing-A-Hung-Guy.info
/WindowsMediaPlayer.php?movie=148803
--
Jimmy_wolinski12
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
|
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 all.
Can anyonoe give me idea about what is happening?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |