Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threading Pin
HexaDeveloper29-Mar-07 11:12
HexaDeveloper29-Mar-07 11:12 
GeneralRe: Threading Pin
Member 9629-Mar-07 11:28
Member 9629-Mar-07 11:28 
GeneralRe: Threading Pin
HexaDeveloper30-Mar-07 9:57
HexaDeveloper30-Mar-07 9:57 
GeneralRe: Threading Pin
Member 9630-Mar-07 10:54
Member 9630-Mar-07 10:54 
GeneralRe: Threading Pin
HexaDeveloper1-Apr-07 2:36
HexaDeveloper1-Apr-07 2:36 
GeneralRe: Threading Pin
Member 961-Apr-07 6:35
Member 961-Apr-07 6:35 
GeneralRe: Threading Pin
HexaDeveloper1-Apr-07 8:27
HexaDeveloper1-Apr-07 8:27 
GeneralRe: Threading Pin
Member 961-Apr-07 9:50
Member 961-Apr-07 9:50 
Hi I don't know a lot about graphics to be honest, what I recommend is that you try a test where you do *not* use a separate thread but keep all the other code identical and see if you still have a memory or resource leak. I suspect you will and threading is not relevant to the leak issue at all.

Or alternatively keep the background workder and try a different UI (just for experimenting) get rid of the box drawing, try something simpler first like updating some text in a text box instead. That might show you where your problems are with this.

Disposing of the thread isn't really related to recoving resources that are consumed by code that runs in that thread. If something inside the thread is leaking it must be fixed inside the thread, not by disposing of the entire thread.

All in all the best way to approach a problem like this is to break it into it's separate components, i.e. break apart the threading from the UI work and diagnose it that way. Often that will either lead to the solution or cause a different way of looking at it or at the very least a better understanding of how the backgroundworker works.

GeneralRe: Threading Pin
HexaDeveloper1-Apr-07 12:06
HexaDeveloper1-Apr-07 12:06 
GeneralRe: Threading Pin
Member 961-Apr-07 12:11
Member 961-Apr-07 12:11 
Questioncahanging behaviour of button control Pin
t4ure4n29-Mar-07 4:26
t4ure4n29-Mar-07 4:26 
AnswerRe: cahanging behaviour of button control Pin
Bekjong29-Mar-07 5:13
Bekjong29-Mar-07 5:13 
QuestionMaskedTextBox Pin
msogun29-Mar-07 4:26
msogun29-Mar-07 4:26 
QuestionUsing findIndex and predicate Pin
sinosoidal29-Mar-07 4:20
sinosoidal29-Mar-07 4:20 
QuestionKeyboard listening Pin
Saikek29-Mar-07 4:11
Saikek29-Mar-07 4:11 
GeneralRe: Keyboard listening Pin
Martin#29-Mar-07 4:56
Martin#29-Mar-07 4:56 
GeneralRe: Keyboard listening Pin
Saikek29-Mar-07 6:47
Saikek29-Mar-07 6:47 
Question.Net 1.1 on Windows NT Pin
satsumatable29-Mar-07 4:09
satsumatable29-Mar-07 4:09 
QuestionHelp required in dropdownlist Pin
kathiksourcecode29-Mar-07 3:11
kathiksourcecode29-Mar-07 3:11 
AnswerRe: Help required in dropdownlist Pin
Not Active29-Mar-07 4:04
mentorNot Active29-Mar-07 4:04 
QuestionRetrieve values into datagrid from database Pin
yaminilatha29-Mar-07 2:17
yaminilatha29-Mar-07 2:17 
AnswerRe: Retrieve values into datagrid from database Pin
Not Active29-Mar-07 4:33
mentorNot Active29-Mar-07 4:33 
QuestionSmart Custom Control Pin
Monty229-Mar-07 2:12
Monty229-Mar-07 2:12 
AnswerRe: Smart Custom Control Pin
Martin#29-Mar-07 2:35
Martin#29-Mar-07 2:35 
GeneralRe: Smart Custom Control Pin
Monty229-Mar-07 19:17
Monty229-Mar-07 19:17 

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.