By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,900 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,900 IT Pros & Developers. It's quick & easy.

Re: Please explain this call stack (45K attachment)

P: n/a

"Joseph Geretz" <jg*****@nospam.comwrote in message
I've attached a screen-shot of my call stack. I'm hoping you can explain
this to me.

The innermost method on this stack is SRSeRx.HTTPReqFilter.Read.
HTTPReqFilter inherits from System.IO.Stream and is installed as a filter
on the current Request obejct. However, I'm curious to understand how I
got here at this specific point, because according to what I understand
(which admittedly is lacking in this area) I don't think I should be here.

The most recent line of code executing within my application is
highlighted in green:

Stream S = httpCtx.Request.InputStream;

This is a simple object reference assignment.

So why in the world does this trigger the Read method on the Request
filter which is installed on this Request object?? In the immortal words
of John Paul Jones - 'I have not yet begun to read!' (I note of course the
item in the call stack - [External Code]. Something is reading from the
Request at this point, but it's not me!

To add insult to injury, when I subsequently get to the line where I do
actually read from the Request.InputStream -

S.Read(buffer, 0, Len);

At that point I *don't* trigger the filter Read method and that's the very
processing point where I need to! So what's going on here?

Thanks very much for any advice which you can provide!
I would suggest that you get Reflector and take a look at the code.

But I bet it calls you because there is a filter installed. Either that, or
it wants to start buffering the data. If the buffer is empty at the time you
reference InputStream, it starts to fill the buffer.

John Saunders | MVP - Connected System Developer

Sep 3 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a

"Joseph Geretz" <jg*****@nospam.comwrote in message
Hi John, thanks for your reply.
>I would suggest that you get Reflector and take a look at the code.

I'm not sure what you mean. The code is mine - I'm putting this together.
I meant look at the Microsoft code that calls yours.

John Saunders | MVP - Connected System Developer

Sep 3 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.