Click here to Skip to main content
15,920,896 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 10:38
professionalChris Losinger6-Oct-06 10:38 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 11:17
Guffa6-Oct-06 11:17 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 11:31
professionalChris Losinger6-Oct-06 11:31 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 12:18
Guffa6-Oct-06 12:18 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 12:31
professionalChris Losinger6-Oct-06 12:31 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 13:17
Guffa6-Oct-06 13:17 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 16:42
professionalChris Losinger6-Oct-06 16:42 
GeneralRe: bug in XmlReader ? Pin
Guffa7-Oct-06 1:47
Guffa7-Oct-06 1:47 
Chris Losinger wrote:
the exact same way it does when it finishes without an exception. why is that so hard for you to understand ?


I understand how you wish that it would work. I want you to explain how in the world you can expect it to work that way?

I have already told you that the reader can't close the file until you tell the reader that you don't want to use it any more. If you just leave it hanging halfway through the read, it doesn't know that you have decided not to read anything more.

It's just like if you pack up your car to go to Alaska, but halfways you run into a roadblock telling you to take another route. If you just step out of the car, leave it running and go to find a bar instead, the car won't figure out that you don't want to drive any further and shut itself down. It will just keep waiting until it runs out of gas.

The same thing happens to the reader that you left hanging. It will just keep waiting until the garbage collector comes and tells it to pack up and go.


---
b { font-weight: normal; }

GeneralRe: bug in XmlReader ? Pin
Chris Losinger7-Oct-06 3:50
professionalChris Losinger7-Oct-06 3:50 
GeneralRe: bug in XmlReader ? Pin
Colin Angus Mackay10-Oct-06 1:05
Colin Angus Mackay10-Oct-06 1:05 
AnswerRe: bug in XmlReader ? [modified] Pin
Dave Kreskowiak6-Oct-06 4:39
mveDave Kreskowiak6-Oct-06 4:39 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 4:55
professionalChris Losinger6-Oct-06 4:55 
QuestionConvert a collection into a list?? Pin
roxuca5-Oct-06 4:39
roxuca5-Oct-06 4:39 
AnswerRe: Convert a collection into a list?? Pin
Robert Rohde9-Oct-06 22:33
Robert Rohde9-Oct-06 22:33 
QuestionComplier Error Question Pin
Beringer5-Oct-06 3:42
Beringer5-Oct-06 3:42 
AnswerRe: Complier Error Question Pin
mr_lasseter5-Oct-06 4:48
mr_lasseter5-Oct-06 4:48 
QuestionAutomatic copying of dlls Pin
Seshadri Manivannan4-Oct-06 2:49
Seshadri Manivannan4-Oct-06 2:49 
AnswerRe: Automatic copying of dlls Pin
Dave Kreskowiak4-Oct-06 4:49
mveDave Kreskowiak4-Oct-06 4:49 
QuestionSystem.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct4-Oct-06 2:47
Elena_2006oct4-Oct-06 2:47 
AnswerRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
S. Senthil Kumar6-Oct-06 6:13
S. Senthil Kumar6-Oct-06 6:13 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct6-Oct-06 6:43
Elena_2006oct6-Oct-06 6:43 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
S. Senthil Kumar6-Oct-06 19:03
S. Senthil Kumar6-Oct-06 19:03 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct8-Oct-06 22:13
Elena_2006oct8-Oct-06 22:13 
QuestionIE popup Pin
m_mor4-Oct-06 0:31
m_mor4-Oct-06 0:31 
AnswerRe: IE popup Pin
CWIZO4-Oct-06 19:58
CWIZO4-Oct-06 19: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.