Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: Openfiledialog Pin
sreejith ss nair17-May-04 1:40
sreejith ss nair17-May-04 1:40 
GeneralRe: Openfiledialog Pin
Heath Stewart17-May-04 3:58
protectorHeath Stewart17-May-04 3:58 
GeneralRe: Openfiledialog Pin
bertcox17-May-04 4:12
bertcox17-May-04 4:12 
Generalregd dll's Pin
karteek16-May-04 21:43
karteek16-May-04 21:43 
GeneralRe: regd dll's Pin
wibblewibblewibble16-May-04 22:14
wibblewibblewibble16-May-04 22:14 
GeneralRe: regd dll's Pin
Dave Kreskowiak17-May-04 0:50
mveDave Kreskowiak17-May-04 0:50 
GeneralInterProcess Communication in WinForms Pin
Ariadne16-May-04 21:39
Ariadne16-May-04 21:39 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 3:34
mveDave Kreskowiak17-May-04 3:34 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 3:37
Ariadne17-May-04 3:37 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 3:45
mveDave Kreskowiak17-May-04 3:45 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 4:04
Ariadne17-May-04 4:04 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 4:26
mveDave Kreskowiak17-May-04 4:26 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 4:38
Ariadne17-May-04 4:38 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 4:55
mveDave Kreskowiak17-May-04 4:55 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 5:18
Ariadne17-May-04 5:18 
Generalmesseging Pin
Devkalyan Das16-May-04 20:43
Devkalyan Das16-May-04 20:43 
GeneralRe: messeging Pin
Heath Stewart17-May-04 4:04
protectorHeath Stewart17-May-04 4:04 
GeneralRuntime Polymorphism Pin
sreejith ss nair16-May-04 20:43
sreejith ss nair16-May-04 20:43 
GeneralRe: Runtime Polymorphism Pin
Dave Kreskowiak17-May-04 0:52
mveDave Kreskowiak17-May-04 0:52 
GeneralRe: Runtime Polymorphism Pin
sreejith ss nair17-May-04 1:41
sreejith ss nair17-May-04 1:41 
GeneralRe: Runtime Polymorphism Pin
Dave Kreskowiak17-May-04 3:28
mveDave Kreskowiak17-May-04 3:28 
GeneralASP.NET and threads Pin
devvvy16-May-04 18:09
devvvy16-May-04 18:09 
GeneralRe: ASP.NET and threads Pin
TigerNinja_16-May-04 18:29
TigerNinja_16-May-04 18:29 
GeneralMore questions... Pin
devvvy16-May-04 22:02
devvvy16-May-04 22:02 
Hi, I have a question about an article I'm reading now: http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx

In figure 5:

public IAsyncResult BeginProcessRequest(HttpContext ctx,
AsyncCallback cb,
object obj)
{
AsyncRequestState reqState =
new AsyncRequestState(ctx, cb, obj);
AsyncRequest ar = new AsyncRequest(reqState);
ThreadStart ts = new ThreadStart(ar.ProcessRequest);
Thread t = new Thread(ts);
t.Start();

return reqState;
}

As far as my understanding goes, every new request is serviced by a HttpApplication derived instance. And it's this HttpApplication derived instance that will call BeginProcessRequest, so how can we specify a callback "cb" and additional arguments encapsulated by "obj".

Thanks!

Norman Fung
GeneralEmbed application Pin
The_Soul_Of_Rock16-May-04 17:58
The_Soul_Of_Rock16-May-04 17:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.