Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

Microsoft Helicopter Joke

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael C - 17 Sep 2007 02:19 GMT
It must have been at least 10 years ago I read this joke and it still
applies more than ever. I'm reading the help for the DeflateStream class and
one of the parameters for the constructor is leaveOpen. All the help file
states is "true to leave the stream open; otherwise, false". Great. For a
start I'm opening a stream and passing in another stream so the term "the
stream" is ambiguous and it's pretty obvious it's talking about a stream
anyway. What I'd really like to know Microsoft is when. :-) Can anyone shed
any light on this.

A helicopter was flying around above Seattle yesterday when an
electrical malfunction disabled all of the aircraft's electronic
navigation and communication equipment.  Due to the clouds and haze
the pilot could not determine his position or course to steer to the
airport.  The pilot saw a tall building, flew toward it, circled, drew
a handwritten sign and held it in the helicopter's window.  The sign
said "WHERE AM I ?" in large letters.

People in the tall building quickly responded to the aircraft, drew a
large sign and held it in a building window.  Their sign said, "YOU
ARE IN A HELICOPTER."  The pilot smiled, waved, looked at his map and
determine the course to steer to SEATAC (Seattle/Tacoma) airport and
landed safely.

After they were on the ground, the co-pilot asked the pilot how the
"YOU ARE IN A HELICOPTER" sign helped determine their position.  The
pilot responded, "I knew that had to be the MICROSOFT building
because they gave me a technically correct but completely useless
answer."
Nicholas Paldino [.NET/C# MVP] - 17 Sep 2007 02:44 GMT
Michael,

   The stream is whatever class that derives from Stream that you pass to
the DeflateStream.  As for when it gets closed, it is when you call Dispose
on the DeflateStream.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> It must have been at least 10 years ago I read this joke and it still
> applies more than ever. I'm reading the help for the DeflateStream class
[quoted text clipped - 24 lines]
> because they gave me a technically correct but completely useless
> answer."
Doug Semler - 17 Sep 2007 02:53 GMT
> Michael,
>
>    The stream is whatever class that derives from Stream that you pass to
> the DeflateStream.  As for when it gets closed, it is when you call
> Dispose on the DeflateStream.

For DeflateStream (and GZipStream), not if the parameter leaveOpen value is
true in the constructor...

Signature

Doug Semler, MCPD
a.a. #705, BAAWA.  EAC Guardian of the Horn of the IPU (pbuhh).
The answer is 42; DNRC o-
Gur Hfrarg unf orpbzr fb shyy bs penc gurfr qnlf, abbar rira
erpbtavmrf fvzcyr guvatf yvxr ebg13 nalzber. Fnq, vfa'g vg?

Michael C - 17 Sep 2007 02:59 GMT
> For DeflateStream (and GZipStream), not if the parameter leaveOpen value
> is true in the constructor...

Thanks, that answers my question. :-)

Michael

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.