Click here to Skip to main content
15,892,059 members
Home / Discussions / WPF
   

WPF

 
Questionevents between two threads Pin
igalep1325-Dec-10 8:03
igalep1325-Dec-10 8:03 
AnswerRe: events between two threads Pin
Mycroft Holmes5-Dec-10 10:51
professionalMycroft Holmes5-Dec-10 10:51 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 10:53
igalep1325-Dec-10 10:53 
AnswerRe: events between two threads Pin
SledgeHammer015-Dec-10 11:02
SledgeHammer015-Dec-10 11:02 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 11:05
igalep1325-Dec-10 11:05 
AnswerRe: events between two threads Pin
Ray Cassick7-Dec-10 9:03
Ray Cassick7-Dec-10 9:03 
GeneralRe: events between two threads Pin
igalep1327-Dec-10 9:56
igalep1327-Dec-10 9:56 
GeneralRe: events between two threads Pin
Ray Cassick7-Dec-10 16:20
Ray Cassick7-Dec-10 16:20 
You need to go back and look at your wording though...

You state that you main application (you call Thread A) is a windows/wpf application and that it launches 'a console app' (that you refer to as Thread B0 that takes care of some backside processing based upon the answer, but no matter there...

The fact that they are separate processes is a bit concerning because now you are spinning of a completely different application (process) that you have specified as a console application to do processing in the background, when in reality it sounds like what you really want to do is just create a new process that is part of your existing application, throw it up on a new thread so it can run independently of the main thread (not a bad thing) and then do your processing as needed.

In reality, if you use separate physical processes, you ARE creating different threads. Each individual process gets it's own thread of execution... but now you need to deal with inter-process communication options like pipes, web services, sockets, etc...

I would just build a class to contain your additional processing, spin an instance of that up internally and use events to pass data back to the main thread when you need to update something visually. Dealing with an app that has multiple individual PROCESSES can be a real pain to maintain, debug, and extend latter on.

GeneralRe: events between two threads Pin
igalep13211-Dec-10 0:28
igalep13211-Dec-10 0:28 
GeneralRe: events between two threads Pin
Ray Cassick16-Dec-10 6:23
Ray Cassick16-Dec-10 6:23 
GeneralRe: events between two threads Pin
igalep13218-Dec-10 11:18
igalep13218-Dec-10 11:18 
Questionchecking processes Pin
arkiboys3-Dec-10 2:58
arkiboys3-Dec-10 2:58 
AnswerRe: checking processes Pin
Pete O'Hanlon3-Dec-10 4:37
mvePete O'Hanlon3-Dec-10 4:37 
GeneralRe: checking processes Pin
arkiboys3-Dec-10 5:43
arkiboys3-Dec-10 5:43 
GeneralRe: checking processes Pin
Pete O'Hanlon3-Dec-10 7:19
mvePete O'Hanlon3-Dec-10 7:19 
GeneralRe: checking processes Pin
arkiboys3-Dec-10 11:00
arkiboys3-Dec-10 11:00 
GeneralRe: checking processes Pin
Pete O'Hanlon3-Dec-10 11:01
mvePete O'Hanlon3-Dec-10 11:01 
GeneralRe: checking processes Pin
arkiboys3-Dec-10 11:02
arkiboys3-Dec-10 11:02 
AnswerRe: checking processes Pin
Abhinav S3-Dec-10 23:22
Abhinav S3-Dec-10 23:22 
QuestionStandard Button Layout Pin
PaulPrice3-Dec-10 0:20
PaulPrice3-Dec-10 0:20 
AnswerRe: Standard Button Layout Pin
Abhinav S3-Dec-10 1:07
Abhinav S3-Dec-10 1:07 
GeneralRe: Standard Button Layout Pin
PaulPrice3-Dec-10 2:04
PaulPrice3-Dec-10 2:04 
AnswerRe: Standard Button Layout Pin
Pete O'Hanlon3-Dec-10 1:16
mvePete O'Hanlon3-Dec-10 1:16 
JokeRe: Standard Button Layout Pin
PaulPrice3-Dec-10 2:02
PaulPrice3-Dec-10 2:02 
GeneralRe: Standard Button Layout Pin
Pete O'Hanlon3-Dec-10 4:35
mvePete O'Hanlon3-Dec-10 4:35 

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.