Click here to Skip to main content
15,888,461 members
Home / Discussions / WPF
   

WPF

 
QuestionGetting WPF in VC++ Pin
Anu_Bala16-Dec-09 18:29
Anu_Bala16-Dec-09 18:29 
Questionunable to understand concurrencymode Pin
Mogamboo_Khush_Hua16-Dec-09 7:15
Mogamboo_Khush_Hua16-Dec-09 7:15 
AnswerRe: unable to understand concurrencymode Pin
Ian Shlasko16-Dec-09 7:26
Ian Shlasko16-Dec-09 7:26 
GeneralRe: unable to understand concurrencymode Pin
Mogamboo_Khush_Hua16-Dec-09 7:50
Mogamboo_Khush_Hua16-Dec-09 7:50 
GeneralWrite code in client to check concurrency Pin
Mogamboo_Khush_Hua16-Dec-09 9:01
Mogamboo_Khush_Hua16-Dec-09 9:01 
GeneralRe: Write code in client to check concurrency Pin
Ian Shlasko16-Dec-09 9:09
Ian Shlasko16-Dec-09 9:09 
GeneralRe: unable to understand concurrencymode Pin
Ian Shlasko16-Dec-09 9:08
Ian Shlasko16-Dec-09 9:08 
GeneralRe: unable to understand concurrencymode Pin
Mogamboo_Khush_Hua16-Dec-09 18:12
Mogamboo_Khush_Hua16-Dec-09 18:12 
I knew about thread safety, but i don't have any clear examples to understand concurrency modes , i run this code as client but it always goes sequentially.


<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
<br />
<br />
namespace ConsoleApplication1<br />
{<br />
    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            ServiceReference2.Service1Client c1 = new ConsoleApplication1.ServiceReference2.Service1Client();<br />
<br />
            for (int i = 0; i < 5; i++)<br />
            {<br />
                //Console.WriteLine("Call {0} started at {1}", i, DateTime.Now);<br />
<br />
<br />
                Console.WriteLine(String.Format("Call {0} Start: {1}",<br />
i.ToString(), DateTime.Now.ToLongTimeString()));<br />
                Console.WriteLine(String.Format("Call {0} : {1}",<br />
                i.ToString(), c1.GetData(i)));<br />
                Console.WriteLine(String.Format("Call {0} End: {1}",<br />
                i.ToString(), DateTime.Now.ToLongTimeString()));<br />
            }<br />
           <br />
           <br />
          //  Console.WriteLine(c.GetMessage("chanu"));<br />
<br />
          //  ServiceReference2.Service1Client c2 = new ConsoleApplication1.ServiceReference2.Service1Client();<br />
          //  Console.WriteLine(c2.GetData(20).ToString());<br />
          ////  Console.WriteLine(c1.GetMessage("rahul"));<br />
<br />
<br />
          //  ServiceReference2.Service1Client c3 = new ConsoleApplication1.ServiceReference2.Service1Client();<br />
          //  Console.WriteLine(c3.GetData(30).ToString());<br />
          // // Console.WriteLine(c2.GetMessage("vijay"));<br />
<br />
            c1.Close();<br />
            //c2.Close();<br />
            //c3.Close();<br />
            <br />
            Console.ReadKey();<br />
        }<br />
    }<br />
}<br />
<br />

GeneralRe: unable to understand concurrencymode Pin
Pete O'Hanlon16-Dec-09 22:02
mvePete O'Hanlon16-Dec-09 22:02 
GeneralRe: unable to understand concurrencymode Pin
Mogamboo_Khush_Hua16-Dec-09 22:51
Mogamboo_Khush_Hua16-Dec-09 22:51 
Generalproblem in thread Pin
Mogamboo_Khush_Hua17-Dec-09 1:13
Mogamboo_Khush_Hua17-Dec-09 1:13 
QuestionHow can I deploy an application using VISIFIRE Pin
cutudi16-Dec-09 2:00
cutudi16-Dec-09 2:00 
AnswerRe: How can I deploy an application using VISIFIRE Pin
vivek_daramwal16-Dec-09 2:28
vivek_daramwal16-Dec-09 2:28 
GeneralRe: How can I deploy an application using VISIFIRE Pin
cutudi16-Dec-09 2:32
cutudi16-Dec-09 2:32 
GeneralRe: How can I deploy an application using VISIFIRE Pin
Pete O'Hanlon16-Dec-09 2:57
mvePete O'Hanlon16-Dec-09 2:57 
GeneralRe: How can I deploy an application using VISIFIRE [modified] Pin
cutudi16-Dec-09 3:59
cutudi16-Dec-09 3:59 
QuestionRe: How can I deploy an application using VISIFIRE Pin
Mark Salsbery16-Dec-09 5:47
Mark Salsbery16-Dec-09 5:47 
AnswerRe: How can I deploy an application using VISIFIRE Pin
cutudi16-Dec-09 20:50
cutudi16-Dec-09 20:50 
QuestionHow can I deploy an application using VISIFIRE Pin
cutudi16-Dec-09 1:58
cutudi16-Dec-09 1:58 
AnswerRe: How can I deploy an application using VISIFIRE Pin
Abhinav S16-Dec-09 5:38
Abhinav S16-Dec-09 5:38 
Questionhow to access local files in xbap? Pin
jdxu198414-Dec-09 22:38
jdxu198414-Dec-09 22:38 
AnswerRe: how to access local files in xbap? Pin
Pete O'Hanlon15-Dec-09 0:08
mvePete O'Hanlon15-Dec-09 0:08 
Questionprinting in silverlight Pin
Tauseef A14-Dec-09 20:12
Tauseef A14-Dec-09 20:12 
AnswerRe: printing in silverlight Pin
Mark Salsbery15-Dec-09 7:33
Mark Salsbery15-Dec-09 7:33 
QuestionThe remote server returned an error: NotFound. [modified] Pin
leone14-Dec-09 8:40
leone14-Dec-09 8:40 

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.