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. Zombie Application?

Zombie Application?

Scheduled Pinned Locked Moved The Weird and The Wonderful
rubyquestion
5 Posts 5 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.
  • N Offline
    N Offline
    nedmech
    wrote on last edited by
    #1

    Ran across this little gem while cleaning some old (but still in active development :~) VB6 code today:

    If GV\_GracefullyExiting Then
        End 'I MEAN IT!!!!! \* for troubles with application re-loading
        End
        End
    End If
    

    * Names and dates removed to protect the ??? Was it really that hard to track down why the application wouldn't die that it needed to be ended three times? I mean, a double-tap is standard zombie killing procedure, but thrice? :doh:

    I 1 Reply Last reply
    0
    • N nedmech

      Ran across this little gem while cleaning some old (but still in active development :~) VB6 code today:

      If GV\_GracefullyExiting Then
          End 'I MEAN IT!!!!! \* for troubles with application re-loading
          End
          End
      End If
      

      * Names and dates removed to protect the ??? Was it really that hard to track down why the application wouldn't die that it needed to be ended three times? I mean, a double-tap is standard zombie killing procedure, but thrice? :doh:

      I Offline
      I Offline
      Ian Shlasko
      wrote on last edited by
      #2

      Yeah, and those other two End statements should be commented! Like so:

      If GV_GracefullyExiting Then
      End 'I MEAN IT!!!!! * for troubles with application re-loading
      End 'Please, please end!
      End 'Why won't you just end!?
      End 'Just end, so I can go home!
      End 'Fine, don't end... See if I care...
      '...
      '...
      '...
      '...
      '...
      '...
      End 'END!!! ENDENDENDENDEND!!!
      End 'That's it... I quit.
      End If

      Proud to have finally moved to the A-Ark. Which one are you in?
      Author of the Guardians Saga (Sci-Fi/Fantasy novels)

      OriginalGriffO 1 Reply Last reply
      0
      • I Ian Shlasko

        Yeah, and those other two End statements should be commented! Like so:

        If GV_GracefullyExiting Then
        End 'I MEAN IT!!!!! * for troubles with application re-loading
        End 'Please, please end!
        End 'Why won't you just end!?
        End 'Just end, so I can go home!
        End 'Fine, don't end... See if I care...
        '...
        '...
        '...
        '...
        '...
        '...
        End 'END!!! ENDENDENDENDEND!!!
        End 'That's it... I quit.
        End If

        Proud to have finally moved to the A-Ark. Which one are you in?
        Author of the Guardians Saga (Sci-Fi/Fantasy novels)

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        If GV_GracefullyExiting Then
        While True
        End
        End While
        End If

        It is VB after all - the Language That Would Not Die...

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        S L 2 Replies Last reply
        0
        • OriginalGriffO OriginalGriff

          If GV_GracefullyExiting Then
          While True
          End
          End While
          End If

          It is VB after all - the Language That Would Not Die...

          Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

          S Offline
          S Offline
          Simon Bang Terkildsen
          wrote on last edited by
          #4

          :laugh: :laugh: :laugh: +5

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            If GV_GracefullyExiting Then
            While True
            End
            End While
            End If

            It is VB after all - the Language That Would Not Die...

            Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

            L Offline
            L Offline
            loctrice
            wrote on last edited by
            #5

            I wish I could do more than 5

            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