Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 18th, 2006, 7:05 AM   #1
Pedja
Programmer
 
Join Date: Nov 2005
Location: Belgrade, Serbia & Montenegro
Posts: 31
Rep Power: 0 Pedja is on a distinguished road
Send a message via ICQ to Pedja Send a message via MSN to Pedja Send a message via Yahoo to Pedja
Unhappy Threading, listViews, application breaking... help?

Hi. I have a problem, and don't have a clue how to solve it.
Application contains 1 form, with 3 ListView controls in it. First of them lists known file types with their current icons, the second one lists programs that are recommended for opening or editing files with extension you choose from the first ListView (displays icons too), while the third one displays all icons from the default program that opens files with the selected extension.
When I use the application by mouse clicking from time to time it works fine. But if I start clicking more often, or start to use keyboard, for example when I just hold the down button to go through first ListView, the application goes crazy. It starts drawing what it shouldn't draw, and doesn't draw what it should. Eventually it crashes, reporting error, allways in different place.
Offcourse, I fill second and third ListView in another thread. In the method listView1_SelectedIndexChanged i've tried to wait for the thread to finish, i've tried mutex synchronization... Nothing helps. I think that simple synchronization doesn't help when you work with forms.
Can someone help me? Does anyone know what is, and how to use Control.Invoke(delegate) method, and does it have anything to do with this?
Pedja is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC