Click here to Skip to main content
15,884,933 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing a generic list to a generic process Pin
Henry Minute6-Mar-09 0:08
Henry Minute6-Mar-09 0:08 
GeneralRe: Passing a generic list to a generic process Pin
N a v a n e e t h6-Mar-09 0:07
N a v a n e e t h6-Mar-09 0:07 
GeneralRe: Passing a generic list to a generic process Pin
S. Senthil Kumar6-Mar-09 4:24
S. Senthil Kumar6-Mar-09 4:24 
GeneralRe: Passing a generic list to a generic process Pin
N a v a n e e t h6-Mar-09 17:20
N a v a n e e t h6-Mar-09 17:20 
GeneralRe: Passing a generic list to a generic process Pin
Mycroft Holmes6-Mar-09 17:12
professionalMycroft Holmes6-Mar-09 17:12 
GeneralRe: Passing a generic list to a generic process Pin
N a v a n e e t h6-Mar-09 17:17
N a v a n e e t h6-Mar-09 17:17 
GeneralRe: Passing a generic list to a generic process Pin
Mycroft Holmes6-Mar-09 20:54
professionalMycroft Holmes6-Mar-09 20:54 
QuestionHow to manage resources in BackGroundWorker Pin
matrixz20015-Mar-09 19:58
matrixz20015-Mar-09 19:58 
Hi All,

I am currently developing a program in VS 2005 C#.

In the program, it shows a live video on a sequence of IO (cylinders, sensors) actions.

The live video is being displaying with a PaintDelegate thread and a callback that I copied from the sample program of the frame grabber manufacturer.

And the sequence of IO is being performed with a backGroundWorker, in which the sequence repeats for 5 times with a for loop.

After leaving the program to run for more than 24 hours, it is noticed that the live video will freeze. After checking with the frame grabber manufacturer, I was told that their sample program should have no problem to run a non-stop live video for 24/7.

So now, I am kind of suspecting that it is the problem with the backGroundWorker, with its resources keep accumulating until it occupies the whole memory of the CPU.

In this case, how should I solve this problem? Should I do a backgroundWorker.Dispose();
every time?

The tool tip on backgroundWorker.Dispose(); says that it releases all resources used by the System.ComponentModel.Component.

What does it means by all resources? Are the boolean type flags considered as the resources too?


If the boolean type flags are released, what state will they become after the .Dispose()?
AnswerRe: How to manage resources in BackGroundWorker Pin
Expert Coming5-Mar-09 20:04
Expert Coming5-Mar-09 20:04 
QuestionData Grid Pin
Sajjad Leo5-Mar-09 19:56
Sajjad Leo5-Mar-09 19:56 
AnswerRe: Data Grid Pin
Expert Coming5-Mar-09 20:01
Expert Coming5-Mar-09 20:01 
GeneralRe: Data Grid Pin
Sajjad Leo5-Mar-09 20:03
Sajjad Leo5-Mar-09 20:03 
GeneralRe: Data Grid Pin
Mycroft Holmes5-Mar-09 20:08
professionalMycroft Holmes5-Mar-09 20:08 
GeneralRe: Data Grid Pin
Sajjad Leo5-Mar-09 20:15
Sajjad Leo5-Mar-09 20:15 
GeneralRe: Data Grid Pin
Mycroft Holmes5-Mar-09 20:23
professionalMycroft Holmes5-Mar-09 20:23 
GeneralRe: Data Grid Pin
Sajjad Leo5-Mar-09 20:39
Sajjad Leo5-Mar-09 20:39 
GeneralRe: Data Grid Pin
Henry Minute5-Mar-09 23:26
Henry Minute5-Mar-09 23:26 
GeneralRe: Data Grid Pin
Sajjad Leo5-Mar-09 23:30
Sajjad Leo5-Mar-09 23:30 
GeneralRe: Data Grid Pin
Henry Minute5-Mar-09 23:49
Henry Minute5-Mar-09 23:49 
GeneralRe: Data Grid Pin
Sajjad Leo6-Mar-09 0:04
Sajjad Leo6-Mar-09 0:04 
GeneralRe: Data Grid Pin
Henry Minute6-Mar-09 0:21
Henry Minute6-Mar-09 0:21 
GeneralRe: Data Grid Pin
jaypatel5128-Mar-09 4:56
jaypatel5128-Mar-09 4:56 
GeneralRe: Data Grid Pin
Henry Minute8-Mar-09 5:28
Henry Minute8-Mar-09 5:28 
GeneralRe: Data Grid Pin
jaypatel5128-Mar-09 5:30
jaypatel5128-Mar-09 5:30 
AnswerRe: Data Grid Pin
jaypatel5128-Mar-09 5:31
jaypatel5128-Mar-09 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.