Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can you target .NET and .NET CF from one project? Pin
Dave Kreskowiak3-Mar-10 11:53
mveDave Kreskowiak3-Mar-10 11:53 
QuestionCreating graphics object Pin
gwithey3-Mar-10 4:09
gwithey3-Mar-10 4:09 
AnswerRe: Creating graphics object Pin
kevinnicol3-Mar-10 4:21
kevinnicol3-Mar-10 4:21 
GeneralRe: Creating graphics object Pin
gwithey3-Mar-10 4:28
gwithey3-Mar-10 4:28 
GeneralRe: Creating graphics object Pin
Pete O'Hanlon3-Mar-10 4:51
mvePete O'Hanlon3-Mar-10 4:51 
AnswerMessage Closed Pin
3-Mar-10 4:27
stancrm3-Mar-10 4:27 
GeneralRe: Creating graphics object Pin
gwithey3-Mar-10 4:31
gwithey3-Mar-10 4:31 
QuestionWeb Service Threading and State Pin
il_manti3-Mar-10 4:02
il_manti3-Mar-10 4:02 
Hi all,

I have an issue and I'd like to find a cleaner solution (as, right now, my work around is dirty beyond recognition Poke tongue | ;-P ).

This is the structure

"Search" (A web service method) is called by Web Site
"Search" calls two other Web Service methods Asynchronously
Each Async method calls a "Completed" method (one each) and each "Completed" method checks if the other one was finished before it
Once both Async calls have been finished another method ("Connect Results") is called by the last finished "Completed" method
"Connect Results" gathers data from two files (saved from each async method) and joins them into one instance of a class "Final Result" which needs to be returned

BUT since the method "Search" needs a return and because the return line is reached before any of the threads have finished executing, the return is always empty.

So I inserted a while loop (which checks that "Final Result" is not empty) before the last "return" line of "Search" which does nothing except wait for the class to be filled!

I'm sure there's some other way to do this... something cleaner but I can't seem to find it.

Thanks for your help and sorry for the long post...
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

QuestionInstaller Pin
Syed Shahid Hussain3-Mar-10 1:12
Syed Shahid Hussain3-Mar-10 1:12 
AnswerRe: Installer Pin
Richard Andrew x643-Mar-10 8:18
professionalRichard Andrew x643-Mar-10 8:18 
QuestionDifference between where<>() and where() in linq? [modified] Pin
sri_34643-Mar-10 0:29
sri_34643-Mar-10 0:29 
AnswerRe: Difference between where() and where() in linq? Pin
Pete O'Hanlon3-Mar-10 1:30
mvePete O'Hanlon3-Mar-10 1:30 
AnswerRe: Difference between where() and where() in linq? Pin
Scott Dorman3-Mar-10 6:47
professionalScott Dorman3-Mar-10 6:47 
GeneralRe: Difference between where() and where() in linq? Pin
Pete O'Hanlon3-Mar-10 9:44
mvePete O'Hanlon3-Mar-10 9:44 
GeneralRe: Difference between where() and where() in linq? Pin
Scott Dorman3-Mar-10 12:41
professionalScott Dorman3-Mar-10 12:41 
GeneralRe: Difference between where() and where() in linq? Pin
Pete O'Hanlon3-Mar-10 21:41
mvePete O'Hanlon3-Mar-10 21:41 
GeneralRe: Difference between where() and where() in linq? Pin
Scott Dorman4-Mar-10 4:25
professionalScott Dorman4-Mar-10 4:25 
QuestionWeb Service web.config variables from dll in bin folder Pin
BASONJS2-Mar-10 23:39
BASONJS2-Mar-10 23:39 
QuestionHow to send commands to a running application from the command line? Pin
Ted On The Net2-Mar-10 22:43
Ted On The Net2-Mar-10 22:43 
AnswerRe: How to send commands to a running application from the command line? Pin
Eddy Vluggen2-Mar-10 23:35
professionalEddy Vluggen2-Mar-10 23:35 
GeneralRe: How to send commands to a running application from the command line? Pin
Ted On The Net2-Mar-10 23:42
Ted On The Net2-Mar-10 23:42 
GeneralRe: How to send commands to a running application from the command line? Pin
Som Shekhar2-Mar-10 23:53
Som Shekhar2-Mar-10 23:53 
GeneralRe: How to send commands to a running application from the command line? Pin
Eddy Vluggen3-Mar-10 0:00
professionalEddy Vluggen3-Mar-10 0:00 
GeneralRe: How to send commands to a running application from the command line? Pin
Ted On The Net3-Mar-10 0:13
Ted On The Net3-Mar-10 0:13 
GeneralRe: How to send commands to a running application from the command line? Pin
Eddy Vluggen3-Mar-10 0:30
professionalEddy Vluggen3-Mar-10 0:30 

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.