none
Thread replaced. RRS feed

  • Question

  • When this method find a second record of the table, can not replace the value of the first true condition and the method was rotating.

     

     if ((== item.HORA_INICIO horaimicio) & & (item.HORA_INICIO_MINUTO minutoInicio ==))
     {
     
     start.idAtual = idAtual;
     thread01 = new Thread (new ThreadStart (start.cronometrar));
     thread01.IsBackground = true;
     thread01.Start ();
     listaThread.Add (thread01);
     
     }

    thanks

    sorry for my English.




    Wednesday, August 24, 2011 1:20 PM

All replies

  • Marcello,

    Porque não colocas a tua questão no forum em Português (http://social.msdn.microsoft.com/Forums/en-US/vscsharppt/threads)? Não percebi nada.

    <Edit by Martin: Translate Portuguese text to English text as below>

    Why not put your question in the forum in Portuguese (http://social.msdn.microsoft.com/Forums/en-US/vscsharppt/threads)? I did not realize anything.


    Paulo Morgado

    • Edited by Martin_XieModerator Thursday, August 25, 2011 5:57 AM Translate text. Thanks for your help.
    Wednesday, August 24, 2011 4:59 PM
  • What object is listaThread?

    I couldn't seem to find it in your code.

    chanmm


    chanmm
    Thursday, August 25, 2011 3:13 AM
  •  

     

     

     

    When this method find a second record of the table, it cannot replace the value of the first true condition and the method was rotating.

     if ((== item.HORA_INICIO horaimicio) & & (item.HORA_INICIO_MINUTO minutoInicio ==))

     {

         start.idAtual = idAtual;

         thread01 = new Thread (new ThreadStart (start.cronometrar));

         thread01.IsBackground = true;

         thread01.Start ();

         listaThread.Add (thread01);

     }


    Hi
    Marcello,

    Welcome to MSDN Forum.

    We cannot catch your points/question from the thread title "Thread replaced" and your description. And the code snippet you provided didn't reflect out your concern.

    Could you please kindly elaborate your question with more context information? Or you can consider posting your question at your native language MSDN Forum.


    Thanks Paulo and chanmm for your help.

     

     

     

     

     

     

     


    Martin Xie [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, August 25, 2011 6:18 AM
    Moderator