B
Brent
Page1.aspx calls Page2.aspx like this:
----------------
Server.Execute("Page2.aspx");
---------------
Page2.aspx's Page_Load event calls a function, getMsgs().This function
runs normally when it is called directly, as in
---------------
getMsgs()
---------------
However, when called on a thread, it doesn't appear to start. I'm
really at a loss to know where to check or monitor the thread for
errors. The threading code looks like this:
--------------
try
{
Thread trd = new Thread(new
ThreadStart(this.getMsgs));
trd.IsBackground = true;
trd.Start();
Thread.Sleep(1000);
}
catch (Exception ex)
{
logEvent.write("Could not start getMsgs. Error: " +
ex.Message);//custom event logger
}
---------------
I'd very much appreciate any tips you may have.
Thanks.
--Brent
----------------
Server.Execute("Page2.aspx");
---------------
Page2.aspx's Page_Load event calls a function, getMsgs().This function
runs normally when it is called directly, as in
---------------
getMsgs()
---------------
However, when called on a thread, it doesn't appear to start. I'm
really at a loss to know where to check or monitor the thread for
errors. The threading code looks like this:
--------------
try
{
Thread trd = new Thread(new
ThreadStart(this.getMsgs));
trd.IsBackground = true;
trd.Start();
Thread.Sleep(1000);
}
catch (Exception ex)
{
logEvent.write("Could not start getMsgs. Error: " +
ex.Message);//custom event logger
}
---------------
I'd very much appreciate any tips you may have.
Thanks.
--Brent