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# / November 2007

Tip: Looking for answers? Try searching our database.

C# Memory Leak

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Mullins [MVP - C#] - 20 Nov 2007 23:53 GMT
As someone who regularly gives presentations on Garbage Collection, and
application profiling and tuning, I found this Slashdot article the other
day to be really funny:

http://developers.slashdot.org/article.pl?sid=07/11/17/0552247

I especially loved the slashdot spin that it is a bug in C# or in the CLR.

(I know, I know, but I like the title of the thread. How else to make sure
everyone reads this? Plus, it's a slow day today. Everyone must be out on
vacation...)

--
Chris Mullins
Peter Duniho - 21 Nov 2007 00:05 GMT
> As someone who regularly gives presentations on Garbage Collection, and
> application profiling and tuning, I found this Slashdot article the other
[quoted text clipped - 3 lines]
>
> I especially loved the slashdot spin that it is a bug in C# or in the CLR.

I thought it was funny too, but it's my recollection that, in a rare
moment of Slashdot insightfulness, the early comments mostly were of
the "RTFA" type, pointing out how the referenced blog entry isn't about
a bug in C# or .NET at all, but rather just an ad for a profiling tool
to help a developer find their _own_ bugs.

In fact, I was a little surprised at the general lack of anti-MS
sentiment.  Granted, I only read the first dozen or so comments; it
wouldn't surprise me to find that the comments eventually degenerated
into the usual Microsoft bashing.

Pete
Hilton - 21 Nov 2007 00:14 GMT
> In fact, I was a little surprised at the general lack of anti-MS
> sentiment.  Granted, I only read the first dozen or so comments; it
> wouldn't surprise me to find that the comments eventually degenerated into
> the usual Microsoft bashing.

Pete, I find the overall tone on slashdot to be anti-MS so this doesn't
surprise me.  Pity, I really enjoy reading slashdot as they seem to have
tech news days or even weeks before the (other) media folks pick up a story.

Hilton
Vapordan - 21 Nov 2007 00:35 GMT
I got to reading this and was asking myself why don't they just attach the
debugger to the  car when it slowing down teheheheh

Signature

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99

>> In fact, I was a little surprised at the general lack of anti-MS
>> sentiment.  Granted, I only read the first dozen or so comments; it
[quoted text clipped - 7 lines]
>
> Hilton
Wingot - 21 Nov 2007 00:38 GMT
> -----Original Message-----
> From: Hilton [mailto:nospam@nospam.com]
[quoted text clipped - 16 lines]
>
> Hilton

As an example:

>>>>We looked through the code on paper, literally line by line, and
just couldn't for the life of us imagine
>>>>what the problem was.
>>>>
>>>This may be the least effective method of debugging in existence.
>>>
>>No no, that would be something along the lines of printing out the
code and then throwing darts at the listing
>>to figure out the incorrect line. I hear it is popular in Redmond,
although they reputedly use chairs instead
>>of darts.
>>
>That makes sense: Since chairs are larger than darts, you have a much
greater chance to hit the bugs.
Peter Bromberg [C# MVP] - 21 Nov 2007 00:33 GMT
When you get to the article itself we find that this is a very old and common
problem (the cause of which is what is between the computer and the chair):

"We profiled the memory usage and saw the obstacle list blowing up. How
could this be? We called "delete" on those old obstacles! To our amazement,
it was only minutes before we realized that our list of detected obstacles
was never getting garbage collected. Though we thought we had cleared all
references to old entries in the list, because the objects were still
registered as subscribers to an event, they were never getting deleted."

----Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

> As someone who regularly gives presentations on Garbage Collection, and
> application profiling and tuning, I found this Slashdot article the other
[quoted text clipped - 10 lines]
> --
> Chris Mullins
Chris Mullins [MVP - C#] - 21 Nov 2007 00:38 GMT
Yea, that's the whole point.

It's not a platform bug at all - not in any possible way. It is, 100%, a bug
in the application code, and one that the development team was very open
about.

I just loved the /. spin, which implied it was the .Net platform that not
only the cause of this bug, but the reason the team failed the DARPA
challenge, and (quite possibly) the root of all evil in general.

I do alot of presentations on GC, and then spend lots of time with people
tracking down memory leaks in managed code. That really made this article
funny to me...

--
Chris Mullins

> When you get to the article itself we find that this is a very old and
> common
[quoted text clipped - 31 lines]
>> --
>> Chris Mullins
Michael D. Ober - 21 Nov 2007 04:04 GMT
> Yea, that's the whole point.
>
[quoted text clipped - 51 lines]
>>> --
>>> Chris Mullins

This article and the problems they had with their car go to show that you
can write crap in any language.

Mike Ober.

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.