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. almost messed up..

almost messed up..

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

    Wasn't thinking, and had to wait for a window to dispose properly before redisplaying it (long story) I was about to code this when my first cup of coffee hit me:

    public void redisplay ()
    {
    try
    {
    //displaying
    }
    catch (Exception e)
    {
    Thread.Sleep (100);
    redisplay();
    }
    }

    S B S 3 Replies Last reply
    0
    • R ruanr

      Wasn't thinking, and had to wait for a window to dispose properly before redisplaying it (long story) I was about to code this when my first cup of coffee hit me:

      public void redisplay ()
      {
      try
      {
      //displaying
      }
      catch (Exception e)
      {
      Thread.Sleep (100);
      redisplay();
      }
      }

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

      Great coding:)

      Regards, Sylvester G

      1 Reply Last reply
      0
      • R ruanr

        Wasn't thinking, and had to wait for a window to dispose properly before redisplaying it (long story) I was about to code this when my first cup of coffee hit me:

        public void redisplay ()
        {
        try
        {
        //displaying
        }
        catch (Exception e)
        {
        Thread.Sleep (100);
        redisplay();
        }
        }

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #3

        To be honest, I find the general catch more disturbing than the recursion.

        R 1 Reply Last reply
        0
        • B Brady Kelly

          To be honest, I find the general catch more disturbing than the recursion.

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

          Slightly less bad than having an empty catch, imo

          1 Reply Last reply
          0
          • R ruanr

            Wasn't thinking, and had to wait for a window to dispose properly before redisplaying it (long story) I was about to code this when my first cup of coffee hit me:

            public void redisplay ()
            {
            try
            {
            //displaying
            }
            catch (Exception e)
            {
            Thread.Sleep (100);
            redisplay();
            }
            }

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

            :-D

            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