Click here to Skip to main content
15,867,488 members
Home / Discussions / C#
   

C#

 
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
subeditorPete 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 
AnswerRe: Thread.Join() and GUI Pin
Luc Pattyn8-Sep-10 0:59
sitebuilderLuc Pattyn8-Sep-10 0:59 
Why would you need Thread.Join() in your main thread? As I told you recently, the main thread should never take long and should never block. Thread.Join() is OK when one background thread needs to wait on another background thread, you should not use it in the main thrad.

If your main thread needs to know some background activity is finished, use another mechanism; however most of the time, you should not be interested in when exactly the background activity finishes, all you need to do is set a flag that tells it you are no longer interested, which allows it to exit early and tells it not to produce anything anymore (yes, your code now needs to test that flag on every action you don't want to go on).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


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 
AnswerRe: DoEvents() and System.Threading.Timer Pin
Luc Pattyn7-Sep-10 14:20
sitebuilderLuc Pattyn7-Sep-10 14:20 

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.