Click here to Skip to main content
15,885,910 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory leaks while calling functions from another assembly. Pin
Luc Pattyn8-Sep-10 2:55
sitebuilderLuc Pattyn8-Sep-10 2:55 
GeneralRe: Memory leaks while calling functions from another assembly. Pin
Aseem Sharma8-Sep-10 3:41
Aseem Sharma8-Sep-10 3:41 
GeneralRe: Memory leaks while calling functions from another assembly. Pin
Pete O'Hanlon8-Sep-10 4:41
mvePete O'Hanlon8-Sep-10 4:41 
GeneralRe: Memory leaks while calling functions from another assembly. Pin
Luc Pattyn9-Sep-10 16:07
sitebuilderLuc Pattyn9-Sep-10 16:07 
AnswerRe: Memory leaks while calling functions from another assembly. Pin
David Knechtges8-Sep-10 3:42
David Knechtges8-Sep-10 3:42 
GeneralRe: Memory leaks while calling functions from another assembly. Pin
Aseem Sharma8-Sep-10 3:59
Aseem Sharma8-Sep-10 3:59 
AnswerRe: Memory leaks while calling functions from another assembly. Pin
Jason J. Chase12-Sep-10 20:31
Jason J. Chase12-Sep-10 20:31 
QuestionThread.Join() and GUI Pin
Keith Vitali8-Sep-10 0:39
Keith Vitali8-Sep-10 0:39 
Hi everyone,

I have a question about how to handle Thread.Join() and the cases where the thread is updating using Invoke.

The problem is my background thread calls back into a method periodically that uses Invoke() to update some GUI elements. Now, when I call Join() on my background thread (in response to the user cancelling the job and the application waiting for the thread to finish), the whole application hangs as the subsequent Invoke() calls never return because Join() is blocking the caller thread (i.e. my main thread).

Does anyone know how I can get around this? Thread.Sleep() is no use either as I do want the main thread to be responsive and at least handle these UI events. I was under the impression that the message pump was supposed to be active when using Thread.Join()

Cheers,
Pankaj
AnswerRe: Thread.Join() and GUI Pin
Luc Pattyn8-Sep-10 0:59
sitebuilderLuc Pattyn8-Sep-10 0:59 
AnswerRe: Thread.Join() and GUI Pin
Kubajzz8-Sep-10 1:03
Kubajzz8-Sep-10 1:03 
AnswerRe: Thread.Join() and GUI Pin
Fayu8-Sep-10 4:09
Fayu8-Sep-10 4:09 
AnswerRe: Thread.Join() and GUI Pin
samuelms8-Sep-10 7:10
samuelms8-Sep-10 7:10 
Questionunable to create shortcut for the application on desktop using setup and deployment project Pin
NarVish7-Sep-10 22:28
NarVish7-Sep-10 22:28 
AnswerRe: unable to create shortcut for the application on desktop using setup and deployment project Pin
Richard MacCutchan8-Sep-10 3:07
mveRichard MacCutchan8-Sep-10 3:07 
QuestionAssigning ICON to new file type (*.dtl) Pin
himuskanhere7-Sep-10 20:06
himuskanhere7-Sep-10 20:06 
AnswerRe: Assigning ICON to new file type (*.dtl) Pin
Calla7-Sep-10 20:50
Calla7-Sep-10 20:50 
GeneralRe: Assigning ICON to new file type (*.dtl) Pin
himuskanhere7-Sep-10 22:45
himuskanhere7-Sep-10 22:45 
QuestionIntroduction to C# application with SQL db Pin
Chesnokov Yuriy7-Sep-10 19:10
professionalChesnokov Yuriy7-Sep-10 19:10 
QuestionAccessing CANdb Database file in C# Pin
Niungareamit7-Sep-10 18:46
Niungareamit7-Sep-10 18:46 
AnswerRe: Accessing CANdb Database file in C# Pin
SeMartens8-Sep-10 0:09
SeMartens8-Sep-10 0:09 
AnswerRe: Accessing CANdb Database file in C# Pin
Dave Kreskowiak8-Sep-10 3:56
mveDave Kreskowiak8-Sep-10 3:56 
QuestionCase for .net remoting Pin
faheemnadeem7-Sep-10 15:45
faheemnadeem7-Sep-10 15:45 
AnswerRe: Case for .net remoting Pin
brunoseixas9-Sep-10 9:40
brunoseixas9-Sep-10 9:40 
QuestionDoEvents() and System.Threading.Timer Pin
Keith Vitali7-Sep-10 13:16
Keith Vitali7-Sep-10 13:16 
AnswerRe: DoEvents() and System.Threading.Timer Pin
Keith Vitali7-Sep-10 13:45
Keith Vitali7-Sep-10 13:45 

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.