Click here to Skip to main content
15,893,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
OriginalGriff3-Mar-10 6:27
mveOriginalGriff3-Mar-10 6:27 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
ant-damage4-Mar-10 10:31
ant-damage4-Mar-10 10:31 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
OriginalGriff4-Mar-10 22:07
mveOriginalGriff4-Mar-10 22:07 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
ant-damage23-Mar-10 3:13
ant-damage23-Mar-10 3:13 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
ant-damage17-Apr-10 12:54
ant-damage17-Apr-10 12:54 
AnswerRe: Bitmap Image to Binary Image (Black & White) Pin
Ennis Ray Lynch, Jr.3-Mar-10 6:31
Ennis Ray Lynch, Jr.3-Mar-10 6:31 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
Luc Pattyn3-Mar-10 6:43
sitebuilderLuc Pattyn3-Mar-10 6:43 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
Ennis Ray Lynch, Jr.3-Mar-10 8:00
Ennis Ray Lynch, Jr.3-Mar-10 8:00 
GeneralRe: Bitmap Image to Binary Image (Black & White) Pin
Luc Pattyn3-Mar-10 8:30
sitebuilderLuc Pattyn3-Mar-10 8:30 
QuestionCan you target .NET and .NET CF from one project? Pin
hairy_hats3-Mar-10 4:57
hairy_hats3-Mar-10 4:57 
AnswerRe: Can you target .NET and .NET CF from one project? Pin
Dave Kreskowiak3-Mar-10 6:21
mveDave Kreskowiak3-Mar-10 6:21 
GeneralRe: Can you target .NET and .NET CF from one project? Pin
hairy_hats3-Mar-10 6:56
hairy_hats3-Mar-10 6:56 
GeneralRe: Can you target .NET and .NET CF from one project? Pin
Som Shekhar3-Mar-10 7:01
Som Shekhar3-Mar-10 7:01 
GeneralRe: Can you target .NET and .NET CF from one project? Pin
Dave Kreskowiak3-Mar-10 8:36
mveDave Kreskowiak3-Mar-10 8:36 
GeneralRe: Can you target .NET and .NET CF from one project? Pin
hairy_hats3-Mar-10 11:01
hairy_hats3-Mar-10 11:01 
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 

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.