- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
If 10 didnt work, 9 neither. logically 0 works. Then it will never work.
Admin
Better wat to solve the problem
Admin
small bug fix
Admin
sigh Because the definition of "space station" is obviously different in star whores universe than in your boring old namby-pamby WTF universe. Fucking hell I thought people here were supposed to have at least one fucking brain cell.
Admin
Possibly the same reason they call Sarah Jessica Fucking Parker a "star" and she's as cunting dull as a buggering thing can possibly be ...
Admin
Is it just me, because this morning the garbage (and recycling) was collected. They come by every week and remove the yucko (technical term!) white bags that collect in the kitchen. There is no way to make it come earlier (they have a fixed schedule).
Sometimes if you protest and don't pay them, they pass you by, but that is another matter.
On the other hand: Send in the clones, They've got to be clones, ...
Admin
Sad but true.
Admin
Yay for race conditions. Why not pre-allocate the dialog itself and make it visible as needed?
Admin
Because, psychologically, ships are pointy, phallic things that look like they're designed to zip quickly from place to place. Stations may be able to move just as fast in frictionless space, but they look like big lumps that just sort of sit there.
Admin
You sir, are one with teh awesome.
Admin
Admin
Feature this!
Admin
The real WTF is the use of 'static'!!!
Admin
I believe them clones are freed Some say we're born into the GC I feel so alone Gonna end up a big ole pile a them clones
Admin
So Matthew Westwood is really Matthew Broderick?
Admin
I think I can top this one for stupid behaviour with GC.... I found this gem in the source code for XADisk (used by one of our apps) when investigating a problem:
Maybe the developer was Irish.... to be sure, to be sure, to be sure....
Admin
He did try again, it's a loop. See that line that says "break;"
It's called a break, it breaks out of containing scopes (of certain kinds).
Would you rather he try again in his catch and then play hot potato?
Dumb code still.
Admin
10 will not work. Goes up to eleven.
Admin
Alex, I have a feature request for the site. Could this guy be redirected to goatse please.
Admin
Don't tell!
Admin
Admin
Clearly iteration is the wrong tool - any finite (or infinite) number could be challenged. Recursion avoids all that...
public static IClonable SafelyClone(IClonable a) { try { return a.Clone(); } catch (OutOfMemoryException) { GC.Collect(GC.MaxGeneration); GC.WaitForPendingFinalizers(); return SafelyClone(a); } }
...or will it? I wonder if the optimiser will recognise tail recursion and avoid a StackOverflowException?
Admin
What was the Core? A Sun ... and a sun is a Star...
Admin
I watched Princess Lea yesterday. It turns out she's started dancing and turned to the black side.
Admin
Admin
Admin
Um, doesn't the garbage collector call itself when there's no memory left?
I mean ... isn't that what they're for?
/Hates GC
Admin
I'd argue that of you're coding realtime or near realtime applications then C# might not be the best language choice.
Admin
Admin
cough
No, he didn't include Chewie because Chewie is not a person, it's a walking rug.
There, that should keep him occupied for the rest of the day. :-)
Admin
Why does a space station necessarily have to be orbiting something in order to be a space station?
Surely the fact that lots of space ships dock with the death star make it a candidate for being a "station".
Admin
The first one doesn't merit an "extra", does it? In fact, it can be argued the second one doesn't, either.
One call: "To free the memory." Two calls: "To be sure that there's free memory." Three calls: "To be extra sure that there's free memory." Four calls: "To be extra, extra sure that there's free memory."
In the general case (and disregarding punctuation for simplicity):
N calls: "To be (extra x n-2) sure that there's free memory."
Captcha: "genitus": genius after having had t.
Admin
Can't argue there. I'd use VB or COBOL.
Admin
:(
Admin
It should have gone to 11.
Admin
Admin
I can see the thought behind this design - memory shortage may be a transient problem, and there's no sense in crashing the app or failing just because something else is in the way for a second or so. One of my pet peeves atm is an application where failure to copy data to the clipboard is met with an error dialog, with no hint that it's tried again (9/10, the second attempt will succeed - in the rest the third will do the trick).
That said, the failure mode of returning the original object is a huge WTF.
Admin
Knowing your are to be troling when you redicule A-list celebrity. Would be same for me to be saying "Aishwarya Rai is being ugly as posibly be."
Admin
FTFY
Admin
Admin
Admin
Indeed, that could not possibly be. Indian women are the most beautiful in the world, followed closely of course by British, then (in no particular order) Italian, French, Japanese, Spanish and Filipino
Admin
Also, it discards the first 9 allocations if they succeeded. I say make it recursive in the catch block! (with max depth of 10 course, ;) so as not to cause an even worse memory problem, lol)
Admin
Also, is it just me, or does the method name strike a remarkable resemblance to a bright orange safety cone, maybe to mark slippery spots in the code base?
Admin
Admin
Admin
Yes, you should upgrade to it. It's really rather good.
Admin
I think Art was trying to make a joke, atk. at least, I laughed.
You'd think. But I know the GC in .NET 1.0 had serious issues & didn't always do what it was supposed to. I know I had to put manual calls in some of my apps back in the day.None quite as ... interesting ... as this one, though.