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. Model lost in space

Model lost in space

Scheduled Pinned Locked Moved The Weird and The Wonderful
rubyhelpannouncement
9 Posts 7 Posters 0 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.
  • D Offline
    D Offline
    dakovinc
    wrote on last edited by
    #1

    In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)

    if(view != null)
    {
    SetUI(view);
    myTree.Update(view);
    }
    else
    {
    MessageBox.Show("Error when saving, Model is lost in space");
    }

    As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(

    S E L E R 5 Replies Last reply
    0
    • D dakovinc

      In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)

      if(view != null)
      {
      SetUI(view);
      myTree.Update(view);
      }
      else
      {
      MessageBox.Show("Error when saving, Model is lost in space");
      }

      As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(

      S Offline
      S Offline
      Sentenryu
      wrote on last edited by
      #2

      dakovinc wrote:

      and the user has no idea what just happened. :(

      Of course they have! they know that the data he entered took the wrong path and ended up in a black hole! ;P

      I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

      P 1 Reply Last reply
      0
      • S Sentenryu

        dakovinc wrote:

        and the user has no idea what just happened. :(

        Of course they have! they know that the data he entered took the wrong path and ended up in a black hole! ;P

        I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

        P Offline
        P Offline
        Pankaj Nikam
        wrote on last edited by
        #3

        Sentenryu wrote:

        Of course they have! they know that the data he entered took the wrong path and ended up in a black hole! ;-P

        :laugh: :thumbsup:

        Always Keep Smiling. Yours Pankaj Nikam

        1 Reply Last reply
        0
        • D dakovinc

          In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)

          if(view != null)
          {
          SetUI(view);
          myTree.Update(view);
          }
          else
          {
          MessageBox.Show("Error when saving, Model is lost in space");
          }

          As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(

          E Offline
          E Offline
          ekolis
          wrote on last edited by
          #4

          Is that a web app? I hope someone dismisses that message box...

          D 1 Reply Last reply
          0
          • E ekolis

            Is that a web app? I hope someone dismisses that message box...

            D Offline
            D Offline
            dakovinc
            wrote on last edited by
            #5

            For god's sake! Luckily, it isn't a web app!

            1 Reply Last reply
            0
            • D dakovinc

              In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)

              if(view != null)
              {
              SetUI(view);
              myTree.Update(view);
              }
              else
              {
              MessageBox.Show("Error when saving, Model is lost in space");
              }

              As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              It reminds me of an old term for a crashed program that 'went to east hyperspace': 1.hyperspace A memory location that is far away from where the program counter should be pointing, especially a place that is inaccessible because it is not even mapped in by the virtual-memory system. “Another core dump — looks like the program jumped off to hyperspace somehow.” (Compare jump off into never-never land.) This usage is from the SF notion of a spaceship jumping into hyperspace, that is, taking a shortcut through higher-dimensional space — in other words, bypassing this universe. The variant east hyperspace is recorded among CMU and Bliss hackers.

              At least artificial intelligence already is superior to natural stupidity

              1 Reply Last reply
              0
              • D dakovinc

                In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)

                if(view != null)
                {
                SetUI(view);
                myTree.Update(view);
                }
                else
                {
                MessageBox.Show("Error when saving, Model is lost in space");
                }

                As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(

                E Offline
                E Offline
                egenis
                wrote on last edited by
                #7

                dakovinc wrote:

                the user has no idea what just happened

                Do they ever have any idea?

                D 1 Reply Last reply
                0
                • E egenis

                  dakovinc wrote:

                  the user has no idea what just happened

                  Do they ever have any idea?

                  D Offline
                  D Offline
                  dakovinc
                  wrote on last edited by
                  #8

                  Sadly, no. (or almost never) This is especially true for the users of the program where this code came from. :(

                  1 Reply Last reply
                  0
                  • D dakovinc

                    In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)

                    if(view != null)
                    {
                    SetUI(view);
                    myTree.Update(view);
                    }
                    else
                    {
                    MessageBox.Show("Error when saving, Model is lost in space");
                    }

                    As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(

                    R Offline
                    R Offline
                    RCoate
                    wrote on last edited by
                    #9

                    I'd be looking for other related error messages:

                    MessageBox.Show("Danger Will Robinson");

                    MessageBox.Show("Never fear, Smith is here!");

                    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