The code is realy simple to check the behaviour.
static public volatile boolean isStarted = false;
static public void run()
{
isStarted = true;
}
protected void Application_Start(Object sender, System.EventArgs e)
{
System.Threading.Thread t = new System.Threading.Thread(new
System.Threading.ThreadStart(run));
t.set_Priority(System.Threading.ThreadPriority.Low est);
t.Start();
while ( !isStarted );
}
run() is never been invoked. The applications hangs in while(isStarted).
regards,
gürkan
"Landley" <ne**@creations-software.co.uk> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP15.phx.gbl...
Please post your code and I'll have a look.
L.
"Gürkan Demirci" <fa********@host.de> wrote in message
news:Oj****************@tk2msftngp13.phx.gbl... Hi,
i am building an ASP.NET web project with J#.
I have the problem, that a Threads run() method isn't
invoked after Thread.start().
It's working in one project, but it isn't in an other one.
Are there any settings involved in this ?
regards,
gürkan