Checking text file I get "Not Responding"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Basil Fenix

    Checking text file I get "Not Responding"

    I check data from a text file with a mdb Database using a progressbar and
    changing the Caption by % to indicate to the user what is happening.The file
    is large and takes quite a while. The problem though is that if the user
    clicks on the form everything freezes and I get "Not Responding". It is
    still doing the check because if you let it continue it finishes running.
    Thanks
    Basil


  • Vince Morgan

    #2
    Re: Checking text file I get "Not Responding&quot ;


    "Basil Fenix" <basil@iafrica. com> wrote in message
    news:Jp6dnZUp6N bJo6rfRVn-rg@is.co.za...[color=blue]
    > I check data from a text file with a mdb Database using a progressbar and
    > changing the Caption by % to indicate to the user what is happening.The[/color]
    file[color=blue]
    > is large and takes quite a while. The problem though is that if the user
    > clicks on the form everything freezes and I get "Not Responding". It is
    > still doing the check because if you let it continue it finishes running.
    > Thanks
    > Basil
    >
    >[/color]

    The thread is too busy doing all that file reading etc. Put "DoEvents" at
    an
    appropriate place in your code. Possibly in the progressbar routine.
    That will allow the thread to check for user interaction with the GUI and
    to respond to the interactions.
    HTH
    Vince Morgan



    Comment

    • Basil Fenix

      #3
      Re: Checking text file I get &quot;Not Responding&quot ;

      Thanks working like a dream.Cannot beleive I am so stupid.
      Thanks again
      Basil
      "Vince Morgan" <vinhar@NOSPAMo ptusnet.com.au> wrote in message
      news:42378c21$0 $29450$afc38c87 @news.optusnet. com.au...[color=blue]
      >
      > "Basil Fenix" <basil@iafrica. com> wrote in message
      > news:Jp6dnZUp6N bJo6rfRVn-rg@is.co.za...[color=green]
      >> I check data from a text file with a mdb Database using a progressbar and
      >> changing the Caption by % to indicate to the user what is happening.The[/color]
      > file[color=green]
      >> is large and takes quite a while. The problem though is that if the user
      >> clicks on the form everything freezes and I get "Not Responding". It is
      >> still doing the check because if you let it continue it finishes running.
      >> Thanks
      >> Basil
      >>
      >>[/color]
      >
      > The thread is too busy doing all that file reading etc. Put "DoEvents" at
      > an
      > appropriate place in your code. Possibly in the progressbar routine.
      > That will allow the thread to check for user interaction with the GUI and
      > to respond to the interactions.
      > HTH
      > Vince Morgan
      >
      >
      >[/color]


      Comment

      • Steve Gerrard

        #4
        Re: Checking text file I get &quot;Not Responding&quot ;


        "Basil Fenix" <basil@iafrica. com> wrote in message
        news:t4adnehL-b2YkaXfRVn-oA@is.co.za...
        [color=blue]
        > Thanks working like a dream.Cannot beleive I am so stupid.
        > Thanks again
        > Basil[/color]

        Not so. Stupid would be not asking...



        Comment

        • Vince Morgan

          #5
          Re: Checking text file I get &quot;Not Responding&quot ;


          "Basil Fenix" <basil@iafrica. com> wrote in message
          news:t4adnehL-b2YkaXfRVn-oA@is.co.za...[color=blue]
          > Thanks working like a dream.Cannot beleive I am so stupid.
          > Thanks again
          > Basil[/color]

          Your welcome Basil.
          Don't worry, if I hadn't done the same myself at some
          point I probably wouldn't have recognised the prob. We
          all make mistakes like that from time to time ;)
          Regards,
          Vince Morgan


          Comment

          • Michael Warner

            #6
            Re: Checking text file I get &quot;Not Responding&quot ;

            Send me the source to see what you've got

            Basil Fenix wrote:[color=blue]
            > I check data from a text file with a mdb Database using a progressbar and
            > changing the Caption by % to indicate to the user what is happening.The file
            > is large and takes quite a while. The problem though is that if the user
            > clicks on the form everything freezes and I get "Not Responding". It is
            > still doing the check because if you let it continue it finishes running.
            > Thanks
            > Basil
            >
            >[/color]

            Comment

            Working...