Hi GWiz:
It's possible that between the time you set the HttpRequest property
(oRequestProcessor.HttpRequest=application;) and the time the thread
actually runs, that the original request will run to completion. It
could be that the ASP.NET runtime has cleared out all the data
structures for the request you are trying to log.
My suggestion would be to start simple and not use a second thread.
Even if the logging is a bottleneck, creating a new thread for each
request is certainly going to be more overhead and you might bog down
the server even more.
--
Scott
http://www.OdeToCode.com/blogs/scott/
>All,
>
[quoted text clipped - 76 lines]
> }
>}
John Timney ( MVP ) - 16 Oct 2005 23:35 GMT
Your not passing the context to the thread, and probably cant as Scott
suggest, because of the duration of the request not remaining in scope. You
would probably have to take the values from the request and pass those to
the thread, rather than relying on context.
Have a read of this excellent article for some ideas:
http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp

Signature
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
> Hi GWiz:
>
[quoted text clipped - 93 lines]
>> }
>>}