Multithreading

  • Thread starter Thread starter =?ISO-8859-2?Q?Marcin_Sm=F3=B3ka?=
  • Start date Start date
?

=?ISO-8859-2?Q?Marcin_Sm=F3=B3ka?=

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
 
Dnia 2003-11-13 14:41, U¿ytkownik Greg Ewing [MVP] napisa³:
Marcin, what error do you get on the machine that doesn't work?
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(100)}

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
 
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?
 
Dnia 2003-11-13 15:54, U¿ytkownik Greg Ewing [MVP] napisa³:
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?
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
 
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]
http://www.citidc.com/
 
Back
Top