Out of memory? Keep going!
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
} -
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
} -
Ahhh, yes a true classic.
-- Real programmers don't comment their code. It was hard to write, it should be hard to understand.
Exquisite gems in programming right? :)
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
}How about a
new
operator in the catch block? :-DVasudevan Deepak Kumar Personal Homepage Tech Gossips
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
}I once saw a program that allocated a huge array on startup. When a certain out of memory condition occurred, it freed the array, then performed a shutdown (hoping that the newly available memory would suffice). I was quite frightened.
Failure is not an option - it's built right in.
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
} -
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
}initially 0000111111000001111100000111111 finally 0000000000000000000000000000000 :laugh::laugh::laugh:
Regards, Sylvester G
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
}catch(OutOfMemoryException ex) {
Ram r = new Ram(RamDualChannelMode.Enabled, 512, 512);
r.Install(RamInstallMode.HotPlug);
}If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
}Wow, run out of memory and just keep going as if nothing happened :rolleyes:
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
catch(OutOfMemoryException ex) {
Ram r = new Ram(RamDualChannelMode.Enabled, 512, 512);
r.Install(RamInstallMode.HotPlug);
}If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki
I think the "new Ram()" call will fail, hence installation would be impossible... How unfortunate! :rolleyes:
-
I found the following C# code in an existing application I was hired to rewrite..
catch (System.OutOfMemoryException)
{
continue;
}:laugh::laugh:
Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus