Multithreading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcin Smó³ka

    Multithreading

    Hi,

    This is my first post on this group.
    I have strange problem with starting new Thread.

    When I'm running application (release version) on computer with Visual
    ..NET, all works properly. When I'm running the same application on
    computer without Visual. Thread doesn't start. (I'm using framewort 1.1
    and .net 2003)

    Marcin Smolka

  • Greg Ewing [MVP]

    #2
    Re: Multithreading

    Marcin, what error do you get on the machine that doesn't work?

    --
    Greg Ewing [MVP]
    Accomplish Your Mission with Better IT | IT support for nonprofits. You deserve peace of mind. National and remote outsourced nonprofit IT.




    "Marcin Smó³ka" <zefir@eti.pg.g da.pl> wrote in message
    news:uYJmJpdqDH A.372@TK2MSFTNG P11.phx.gbl...[color=blue]
    > Hi,
    >
    > This is my first post on this group.
    > I have strange problem with starting new Thread.
    >
    > When I'm running application (release version) on computer with Visual
    > .NET, all works properly. When I'm running the same application on
    > computer without Visual. Thread doesn't start. (I'm using framewort 1.1
    > and .net 2003)
    >
    > Marcin Smolka
    >[/color]


    Comment

    • Marcin Smó³ka

      #3
      Re: Multithreading

      Dnia 2003-11-13 14:41, U¿ytkownik Greg Ewing [MVP] napisa³:
      [color=blue]
      > Marcin, what error do you get on the machine that doesn't work?
      >[/color]
      The problem is I have no error information.

      This application provides MSIE and I downloading page by navigate mthod
      then in new thread I wait for browser (

      while (browser.busy)
      {Thread.Sleep(1 00)}

      then I get some html code for further parsing

      After parsing I'm running next page and so on.

      That's all in my applictaion.

      I'm logging some info, and that's why I know that no Thread is started,
      because just after started, I'm adding new info to log. And on computer
      without vs.net there is no info :(. I don't know what's going on.

      Marcin

      Comment

      • Greg Ewing [MVP]

        #4
        Re: Multithreading

        Marcin, can you put some logging in to the code where you start the thread
        to make sure that no exceptions are being thrown there?

        --
        Greg Ewing [MVP]
        Accomplish Your Mission with Better IT | IT support for nonprofits. You deserve peace of mind. National and remote outsourced nonprofit IT.



        "Marcin Smó³ka" <zefir@eti.pg.g da.pl> wrote in message
        news:uD9xd2eqDH A.2268@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Dnia 2003-11-13 14:41, U¿ytkownik Greg Ewing [MVP] napisa³:
        >[color=green]
        > > Marcin, what error do you get on the machine that doesn't work?
        > >[/color]
        > The problem is I have no error information.
        >
        > This application provides MSIE and I downloading page by navigate mthod
        > then in new thread I wait for browser (
        >
        > while (browser.busy)
        > {Thread.Sleep(1 00)}
        >
        > then I get some html code for further parsing
        >
        > After parsing I'm running next page and so on.
        >
        > That's all in my applictaion.
        >
        > I'm logging some info, and that's why I know that no Thread is started,
        > because just after started, I'm adding new info to log. And on computer
        > without vs.net there is no info :(. I don't know what's going on.
        >
        > Marcin
        >[/color]


        Comment

        • Marcin Smó³ka

          #5
          Re: Multithreading

          Dnia 2003-11-13 15:54, U¿ytkownik Greg Ewing [MVP] napisa³:[color=blue]
          > Marcin, can you put some logging in to the code where you start the thread
          > to make sure that no exceptions are being thrown there?
          >[/color]
          Yes, I did it, thats wny I know that thread didn't start.

          I have something like this:

          private void ThreadMethod()
          {
          Log("Thread started");

          ....
          Rest of code
          ....

          Log("Thread finished");
          }

          And I don't have these messages in my log.

          Marcin

          Comment

          • Greg Ewing [MVP]

            #6
            Re: Multithreading

            Marcin, I mean in the code that starts the thread, not the start of the
            thread. So, where you are calling Thread.Start(), put some logging and
            exception handling to make sure that it is in fact starting.

            While you are at it, could you post your code you use to start the thread?

            --
            Greg Ewing [MVP]
            Accomplish Your Mission with Better IT | IT support for nonprofits. You deserve peace of mind. National and remote outsourced nonprofit IT.




            "Marcin Smó³ka" <zefir@nie.chce .spamu.com> wrote in message
            news:#vb7uhnqDH A.2440@TK2MSFTN GP10.phx.gbl...[color=blue]
            > Dnia 2003-11-13 15:54, U¿ytkownik Greg Ewing [MVP] napisa³:[color=green]
            > > Marcin, can you put some logging in to the code where you start the[/color][/color]
            thread[color=blue][color=green]
            > > to make sure that no exceptions are being thrown there?
            > >[/color]
            > Yes, I did it, thats wny I know that thread didn't start.
            >
            > I have something like this:
            >
            > private void ThreadMethod()
            > {
            > Log("Thread started");
            >
            > ....
            > Rest of code
            > ....
            >
            > Log("Thread finished");
            > }
            >
            > And I don't have these messages in my log.
            >
            > Marcin
            >[/color]


            Comment

            Working...