On Jul 1, 2:18*pm, Jon Skeet [C# MVP] <sk...@pobox.comwrote:
Ross <rosshink...@gmail.comwrote:
I'm not sure it will matter... Apparently all of our locations have
the 2.0 framework and I can upgrade the entire project to 2.0... it's
still aggravating when our friends in Redmond do something without
documenting it (or at least making the change documentation hard to
find).
Well, it could well be that your code previously worked but wasn't
guaranteed to, and they made a change which wouldn't affect anyone with
genuinely correct code. However, it's hard to say without seeing the
exact code.
At any rate, I think I've found the original example that I've modeled
(read: shamelessly plagiarized) my work after:
http://www.c-sharpcorner.com/UploadF.../DotNetBugs120
62005230632PM/DotNetBugs.aspx
Well, a short but complete example would still make life a lot simpler
- otherwise we don't know whether you introduced the bug, or what.
--
Jon Skeet - <sk...@pobox.com>
Web site:http://www.pobox.com/~skeet*
Blog:http://www.msmvps.com/jon_skeet
C# in Depth:http://csharpindepth.com
You can download the complete snippet at that link, I'm fairly
certain.
The only things I modified were some return values - the project
expects the total number of bytes transferred back. (Our original
library, written in C++, used wininet to accomplish this, so I tried
to model the C# version a little more closely to that. I prefer my
code changes to be of minimal impact as far as method definitions
go.) I also tossed in some debug logging, just in case.
I'll put together a condensed example later today that exhibits the
same behavior. I didn't have the moment yesterday... at work, the
only guarantee I have is more work, and my internet at home has been
on the fritz.
-Ross