Click here to Skip to main content
15,898,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 8:55
igalep1325-Dec-10 8:55 
GeneralRe: events between two threads Pin
Luc Pattyn5-Dec-10 9:42
sitebuilderLuc Pattyn5-Dec-10 9:42 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 9:48
igalep1325-Dec-10 9:48 
GeneralRe: events between two threads Pin
Luc Pattyn5-Dec-10 9:57
sitebuilderLuc Pattyn5-Dec-10 9:57 
AnswerRe: events between two threads Pin
Not Active5-Dec-10 9:28
mentorNot Active5-Dec-10 9:28 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 9:38
igalep1325-Dec-10 9:38 
GeneralRe: events between two threads Pin
Not Active5-Dec-10 9:56
mentorNot Active5-Dec-10 9:56 
GeneralRe: events between two threads [modified] Pin
igalep1325-Dec-10 10:47
igalep1325-Dec-10 10:47 
i cant stop the execution...

I implement application which is based on decision tree.
you may have progress in breadth and in depth.

The main idea is to ask some question, if the answer is wrong, then the progress is in breadth (another question with the same difficulty level), here comes the recursion.
if the answer the user provide is correct, the progress is to the deeper level (higher difficulty level), this part works by loop.

i cant stop the recursion part in the middle of the progress.
when i started to implement it using console, it was easy, i just waited to user's input by Console.ReadLine() .
But now, i execute the algorithm from the ui, and after some question was generated, the ui updated, but the algorithm continue to run...

How do you think I can solve it ?

Thanks

modified on Sunday, December 5, 2010 5:26 PM

AnswerRe: yield Pin
Luc Pattyn5-Dec-10 11:25
sitebuilderLuc Pattyn5-Dec-10 11:25 
GeneralRe: yield Pin
Not Active5-Dec-10 11:32
mentorNot Active5-Dec-10 11:32 
GeneralRe: yield Pin
Pete O'Hanlon5-Dec-10 11:33
mvePete O'Hanlon5-Dec-10 11:33 
GeneralRe: yield Pin
Luc Pattyn5-Dec-10 11:37
sitebuilderLuc Pattyn5-Dec-10 11:37 
GeneralRe: yield Pin
igalep13211-Dec-10 0:45
igalep13211-Dec-10 0:45 
GeneralRe: yield Pin
Luc Pattyn11-Dec-10 1:00
sitebuilderLuc Pattyn11-Dec-10 1:00 
GeneralRe: yield [modified] Pin
igalep13211-Dec-10 4:53
igalep13211-Dec-10 4:53 
AnswerRe: yield Pin
Luc Pattyn11-Dec-10 14:03
sitebuilderLuc Pattyn11-Dec-10 14:03 
GeneralRe: events between two threads Pin
Not Active5-Dec-10 11:38
mentorNot Active5-Dec-10 11:38 
GeneralRe: events between two threads [modified] Pin
igalep1326-Dec-10 10:40
igalep1326-Dec-10 10:40 
GeneralRe: events between two threads Pin
Not Active6-Dec-10 10:58
mentorNot Active6-Dec-10 10:58 
GeneralRe: events between two threads Pin
igalep1326-Dec-10 11:14
igalep1326-Dec-10 11:14 
AnswerRe: events between two threads Pin
Luc Pattyn5-Dec-10 12:27
sitebuilderLuc Pattyn5-Dec-10 12:27 
AnswerRe: events between two threads Pin
Pete O'Hanlon5-Dec-10 9:31
mvePete O'Hanlon5-Dec-10 9:31 
GeneralRe: events between two threads Pin
igalep1325-Dec-10 9:37
igalep1325-Dec-10 9:37 
GeneralRe: events between two threads Pin
Not Active5-Dec-10 9:55
mentorNot Active5-Dec-10 9:55 
GeneralRe: events between two threads Pin
Pete O'Hanlon5-Dec-10 9:55
mvePete O'Hanlon5-Dec-10 9:55 

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.