|
Retry actually makes sense: sometimes you have to wait for something to "wake up" so doing it three times before failing isn't a bad idea.
Be a nice addon to C#:
retry (3)
{
MyOperation();
}
catch (Exception ex)
{
...
} Or even just
try (3)
{
MyOperation();
}
catch (Exception ex)
{
...
}
Mind you, it'd also be nice to have try with a timespan timeout which caused a catch sometimes.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I think you can with Rx, but It will involve some nasty code.
If you look in the link I posted you can retry infinitely many times:
public static void RetrySample<T>(IObservable<T> source)
{
source.Retry().Subscribe(t=>Console.WriteLine(t));
Console.ReadKey();
}
So all you have to do is to enclose the subscription in an Observer, and set a timerinterval for desubscription by using an IObserver class.
|
|
|
|
|
OriginalGriff wrote: Why isn't this abortion dead? When you have a function that calls an external process and you don't care if it generates an error or not, then it works great. If it does generate an error it's an external process and nothing you can do about it and you still want the rest of your code to run.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
There was a "question" back in April which was basically a rant about how C# sucked because it didn't have this "feature".
The OP was insistent that his code was perfect, and he just wanted to ignore Microsoft's errors.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: The OP was insistent that his code was perfect, and he just wanted to ignore Microsoft's errors. You know, sometimes natural selection is just too damned slow.
Software Zen: delete this;
|
|
|
|
|
The worst part of this is that I find a whole bunch of vendors that do this crap, too! I deal with Dynamics GP, where customizations can be written in VBA. I had a major error in one window where it kept dumping the user into VBA, bypassing all security. I contacted the vendor, and (sort of politely) requested they get their **** together. They sent me updated code... First line?
On error resume next
I lost it! They were confused why we changed vendors within a week after that...
|
|
|
|
|
I used it once, in a mini-prog that just creates empty, numbered ZIP or RAR files.
The code was so simple that any potential "real" errors were dealt with without hardly having to think about them, so the only thing to worry about was if someone tried to create files with the same filenames as existing file (which I'd set to fail).
It simply wasn't worth the effort of catching the error, so I just let it happen and Resumed Next.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
From PompeyThree, who can't be with us today:
"Seagull Soars for pastry snack" (7,5)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Sausage Rolls
Anagram of seagull soars.
Andy B
|
|
|
|
|
And you are up tomorrow!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Oh, right. I really couldn't see how Cornish Pasty worked!
I am not a number. I am a ... no, wait!
|
|
|
|
|
OriginalGriff wrote: PompeyThree, who can't be with us today
I am sorry for your loss.
... such stuff as dreams are made on
|
|
|
|
|
I think he's off visiting his big hole in the ground full of cash...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
It is a relief to hear he is not in the hole yet!
... such stuff as dreams are made on
|
|
|
|
|
I'm amazed it's not (3,5,3) again!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
Did Microsoft inject a bug into Skype, or did I screw up a setting ?
The "Away" status no longer works on my copy of skype.
I am either present, online (green dot) or I am Unavailable (red dot) and won't see any calls which come in while I am away from my desk.
If I click on "Away" (the mustard colored dot) I don't get "away" as a status, but instead, skype goes into "Unavailable" (red dot) status.
I tried setting the timeout status to show me "away" after two minutes; same thing. When the timeout hits, I am not shown as "away" (mustard colored dot) but instead as "unavailable" (red dot).
This "New Skype Experience" began today. Had no problems before.
Oh, another weird one: if I have a voice conversation with someone, I go into red dot status again.
Is anyone else experiencing this behavior ?
|
|
|
|
|
Works for me. 7.24.0.104 on Win 7.
Likewise on Win 10 (which just installed that update when I opened it).
I don't know of any setting that might affect it.
Are you signed on on multiple devices? That can confuse status.
Chewers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
This started happening for me after the previous update, but Skype just updated this morning and it's now ok.
|
|
|
|
|
I clicked Help then Check For Updates
Skype says that I have the latest version
Still open to suggestions.
modified 9-Jun-16 5:48am.
|
|
|
|
|
It's not a bug, it's The Best Skype Ever!
And the Safest Skype Ever!
You have to learn the MS mantras, before complaining.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
This interesting Atlantic Magazine on-line essay starts off by describing the story of the engineer who tried to warn NASA that it was too cold to launch the ill-fated Shuttle flight that ended in the tragedy of seven astronauts dying, and his struggle with regret (and, probably, guilt) that he was not listened to, and, so, indirectly was associated with the tragic results: [^].
fyi: the NPR essay the Atlantic article refers to about the engineer coming forward now, thirty years after the Shuttle accident, is here: [^].
And you, have you ever had "technical regrets" ?
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
modified 8-Jun-16 20:43pm.
|
|
|
|
|
Only the fact that no matter how hard I try, I cannot hang a door to save my life.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Hoho I achieved that once, took a lot of little chock and endless patience. Then some bloody chippie comes in and hangs the next one in about 20 minutes, I went back to painting!!!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I am not alone. We did a major addition on our house. When it came time for interior doors, these two guys hung 10 doors in about 2 hours. I think they'd done it before. I was depressed.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|