Click here to Skip to main content
15,906,816 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: saving path problem, please help. Pin
Anubhava Dimri1-Apr-10 18:14
Anubhava Dimri1-Apr-10 18:14 
GeneralRe: saving path problem, please help. Pin
Farraj2-Apr-10 1:47
Farraj2-Apr-10 1:47 
GeneralRe: saving path problem, please help. Pin
Anubhava Dimri2-Apr-10 2:41
Anubhava Dimri2-Apr-10 2:41 
QuestionHelp Please : How to send VB data to C++ dl Pin
Amber24526-Mar-10 19:34
Amber24526-Mar-10 19:34 
AnswerRe: Help Please : How to send VB data to C++ dl Pin
T210228-Mar-10 21:26
T210228-Mar-10 21:26 
AnswerRe: Help Please : How to send VB data to C++ dl Pin
Richard MacCutchan28-Mar-10 23:07
mveRichard MacCutchan28-Mar-10 23:07 
QuestionIssue with threading behaviour ... I think Pin
Jack Vanderhorst26-Mar-10 4:54
Jack Vanderhorst26-Mar-10 4:54 
AnswerRe: Issue with threading behaviour ... I think Pin
Luc Pattyn26-Mar-10 5:30
sitebuilderLuc Pattyn26-Mar-10 5:30 
Hi Jack,

Not sure, but I would guess your test framework is being run from some thread other than the main thread.

BackgroundWorker (and other threads) are not allowed to touch GUI Controls directly, you know that. Some of their events (ReportProgress and RunWorkCompleted) take care of the thread barrier automatically, but only so when the BackgroundWorker got created by the main thread. Weird things could happen when an arbitrary thread creates a BGW whose event handlers in turn try to modify the GUI.

To make sure whether your DoWork method gets called or not, I suggest you simply insert a MessageBox.Show(), that one doesn't care about thread boundaries at all. An alternative diagnostic tool is:
Console.WriteLine("Method XYZ running on thread "+Thread.CurrentThread.ManagedThreadId.ToString("X2"));

which allows you to visualize the thread on which the caller is running.

Smile | :)

GeneralRe: Issue with threading behaviour ... I think Pin
Jack Vanderhorst27-Mar-10 16:16
Jack Vanderhorst27-Mar-10 16:16 
AnswerRe: Issue with threading behaviour ... I think Pin
Luc Pattyn27-Mar-10 16:24
sitebuilderLuc Pattyn27-Mar-10 16:24 
QuestionO/R -Mapping with .netTiers and Audittrail with Entity Framework?? Pin
andreas.schaerer26-Mar-10 4:23
andreas.schaerer26-Mar-10 4:23 
QuestionHow to read *.dmp file with visual C# .net to search strings in it Pin
harji1725-Mar-10 13:45
harji1725-Mar-10 13:45 
AnswerRepost Pin
Not Active25-Mar-10 14:35
mentorNot Active25-Mar-10 14:35 
QuestionRichTextBox syntax color - find all lines or line by line Pin
norrisMiou25-Mar-10 3:19
norrisMiou25-Mar-10 3:19 
AnswerRe: RichTextBox syntax color - find all lines or line by line Pin
Luc Pattyn25-Mar-10 4:37
sitebuilderLuc Pattyn25-Mar-10 4:37 
NewsGoldman Sachs Vice Presidents Speak Java at Great Indian Developer Summit 2010 Pin
Rajesh557525-Mar-10 1:21
Rajesh557525-Mar-10 1:21 
QuestionMessage Removed Pin
24-Mar-10 19:52
sindhumahe24-Mar-10 19:52 
AnswerRe: building a object file lib Pin
Richard MacCutchan24-Mar-10 22:42
mveRichard MacCutchan24-Mar-10 22:42 
GeneralRe: building a object file lib Pin
sindhumahe24-Mar-10 22:52
sindhumahe24-Mar-10 22:52 
GeneralRe: building a object file lib [modified] Pin
Richard MacCutchan25-Mar-10 2:08
mveRichard MacCutchan25-Mar-10 2:08 
GeneralRe: building a object file lib Pin
Luc Pattyn25-Mar-10 3:04
sitebuilderLuc Pattyn25-Mar-10 3:04 
GeneralRe: building a object file lib Pin
Richard MacCutchan25-Mar-10 4:09
mveRichard MacCutchan25-Mar-10 4:09 
GeneralRe: building a object file lib Pin
Luc Pattyn25-Mar-10 4:24
sitebuilderLuc Pattyn25-Mar-10 4:24 
QuestionDiffrence between tier and layer architecture ? Pin
Mahendran.chandramohan24-Mar-10 1:47
Mahendran.chandramohan24-Mar-10 1:47 
AnswerRe: Diffrence between tier and layer architecture ? Pin
Eddy Vluggen24-Mar-10 1:58
professionalEddy Vluggen24-Mar-10 1:58 

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.