473,396 Members | 1,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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



"Joseph Geretz" <jg*****@nospam.comwrote in message
news:eh**************@TK2MSFTNGP06.phx.gbl...
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
1 1362


"Joseph Geretz" <jg*****@nospam.comwrote in message
news:##**************@TK2MSFTNGP05.phx.gbl...
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: chak | last post by:
Hello, Can anyone give an idea why we get the error below when we try to run our first Dot net application ? Thanks. Server Error in '/XXX' Application.
8
by: Generic Usenet Account | last post by:
Our C++ program was linked with some legacy C functions. We had used the extern "C" declaration, and everything was working fine. Then someone thought that it would be better to have a consistent...
9
by: thomson | last post by:
Hi all, Would you please explain me where will be the heap stored if it is declared inside the Class, As class is a reference type, so it gets stored on the heap, but struct is a value...
4
by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor....
6
by: David Lozzi | last post by:
Howdy, I'm new to classes. Below is my class User. (is this a reserved namespace or class?) It works great, kind of. If I specify the username and password, the correct firstname and lastname...
0
by: Stu | last post by:
Hi, I have a 3 tier system using web services I want to attach on the 3rd tier - data access to the middle tier - business rules and call the business rule tier from the front end to get the...
6
by: iam1708 via DotNetMonster.com | last post by:
I was looking at the docs for Thread and can't understand the different between "unnamed data slot "and "data slot".and docs in Thread.GetData() say "Threads use a local store memory mechanism to...
24
by: arcticool | last post by:
I had an interview today and I got destroyed :( The question was why have a stack and a heap? I could answer all the practical stuff like value types live on the stack, enums are on the stack, as...
0
by: bruce barker | last post by:
you cannot get the Length of the input stream as its not a buffered stream. you should read in chucks. also if you use a filter, your filter will not run if Response.End(), Response.Redirect(), or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.