Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have one client for whom my app does not work most of the time. The application loads video thumbnails, and gives an application has stopped responding' error and the app closes. I believe the issue to be that their virus scanner is scanning my video files and takes too long to do it. If I drop the number of videos from 19 to 6, it works fine every time. Every other Weven machine I've tested never has an issue. My question is, is there something I can put in the manifest, for example, to cause Windows to give my program more time to respond ?

John - that is an excellent suggestion with only one drawback. My code just loads the list of files from the file system. It loads in no time. The slow bit, the bit which seems to invoke the virus scanner, is when my UI binds a WPF ListBox to the list of video names. As such, it's not my code that loads the videos, and I'm not sure that it's possible to do it in another thread.
Posted
Updated 8-Feb-10 12:48pm
v2

The message you're seeing is being generated by the Task Manager. It periodically polls every running application with a system message. If the application doesn't respond to the message within 5 seconds, Task Manager thinks it's froze up, and generates that message. If you haven't already, I would put the thumbnail loading code into a background thread so that the UI can respond to the system message.

The root of the problem is that the code you use to load the thumbnail is not asynchronous, and therefore doesn't allow the application to respond to other messages.
 
Share this answer
 
Oh, then WPF is your problem. :)


If the list is only read in one time, I'd try not using databinding at all, and simply do

listbox.Items.AddRange(myList.ToArray());


Of course, I'm not familiar with your code, but it might be worth a try.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900