Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Out of memory? Keep going!

Out of memory? Keep going!

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpperformancequestion
11 Posts 10 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gavin Kendall
    wrote on last edited by
    #1

    I found the following C# code in an existing application I was hired to rewrite..

    catch (System.OutOfMemoryException)
    {
    continue;
    }

    M V J R S 8 Replies Last reply
    0
    • G Gavin Kendall

      I found the following C# code in an existing application I was hired to rewrite..

      catch (System.OutOfMemoryException)
      {
      continue;
      }

      M Offline
      M Offline
      M Harris
      wrote on last edited by
      #2

      Ahhh, yes a true classic.

      -- Real programmers don't comment their code. It was hard to write, it should be hard to understand.

      V 1 Reply Last reply
      0
      • M M Harris

        Ahhh, yes a true classic.

        -- Real programmers don't comment their code. It was hard to write, it should be hard to understand.

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Exquisite gems in programming right? :)

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        1 Reply Last reply
        0
        • G Gavin Kendall

          I found the following C# code in an existing application I was hired to rewrite..

          catch (System.OutOfMemoryException)
          {
          continue;
          }

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          How about a new operator in the catch block? :-D

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          1 Reply Last reply
          0
          • G Gavin Kendall

            I found the following C# code in an existing application I was hired to rewrite..

            catch (System.OutOfMemoryException)
            {
            continue;
            }

            J Offline
            J Offline
            jhwurmbach
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • G Gavin Kendall

              I found the following C# code in an existing application I was hired to rewrite..

              catch (System.OutOfMemoryException)
              {
              continue;
              }

              R Offline
              R Offline
              ruanr
              wrote on last edited by
              #6

              I can just imagine that guy sitting there thinking, "Out of memory... PROBLEM SOLVED!!!111!11one"

              1 Reply Last reply
              0
              • G Gavin Kendall

                I found the following C# code in an existing application I was hired to rewrite..

                catch (System.OutOfMemoryException)
                {
                continue;
                }

                S Offline
                S Offline
                Sylvester george
                wrote on last edited by
                #7

                initially 0000111111000001111100000111111 finally 0000000000000000000000000000000 :laugh::laugh::laugh:

                Regards, Sylvester G

                1 Reply Last reply
                0
                • G Gavin Kendall

                  I found the following C# code in an existing application I was hired to rewrite..

                  catch (System.OutOfMemoryException)
                  {
                  continue;
                  }

                  D Offline
                  D Offline
                  Dario Solera
                  wrote on last edited by
                  #8

                  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

                  S 1 Reply Last reply
                  0
                  • G Gavin Kendall

                    I found the following C# code in an existing application I was hired to rewrite..

                    catch (System.OutOfMemoryException)
                    {
                    continue;
                    }

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • D Dario Solera

                      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

                      S Offline
                      S Offline
                      Super Lloyd
                      wrote on last edited by
                      #10

                      I think the "new Ram()" call will fail, hence installation would be impossible... How unfortunate! :rolleyes:

                      1 Reply Last reply
                      0
                      • G Gavin Kendall

                        I found the following C# code in an existing application I was hired to rewrite..

                        catch (System.OutOfMemoryException)
                        {
                        continue;
                        }

                        S Offline
                        S Offline
                        Sathesh Sakthivel
                        wrote on last edited by
                        #11

                        :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

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups