Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

how to stop an infinite loop?

Discussion in 'Information Technology' started by Gijs van Swaaij, Jul 28, 2006.

  1. Gijs van Swaaij

    Gijs van Swaaij
    Expand Collapse
    Guest

    Just a quick question: how can I kill an infinite loop without losing
    my unsaved data? I'm asking because I just lost half an hour of work
    after ending access with Task Manager, after it had entered an infinite
    loop. For the second time... Ctrl-C doesn't work, neither does anything
    else I tried. Does anyone know how I can end it?

    Thanks,
    Gijs van Swaaij
     
  2. Loading...


  3. Wayne Morgan

    Wayne Morgan
    Expand Collapse
    Guest

    Try Ctrl+Break. On most keyboards the Break key is near the Print Screen and
    Scroll Lock keys.

    --
    Wayne Morgan
    MS Access MVP


    "Gijs van Swaaij" <g.vanswaaij@gmail.com> wrote in message
    news:1150462944.702926.289670@f6g2000cwb.googlegroups.com...
    > Just a quick question: how can I kill an infinite loop without losing
    > my unsaved data? I'm asking because I just lost half an hour of work
    > after ending access with Task Manager, after it had entered an infinite
    > loop. For the second time... Ctrl-C doesn't work, neither does anything
    > else I tried. Does anyone know how I can end it?
    >
    > Thanks,
    > Gijs van Swaaij
    >
     
  4. Al Camp

    Al Camp
    Expand Collapse
    Guest

    Gijs,
    If you have some code that's causing this, try forcing a Save/Update of the Form/Data
    before the code runs. Just until you get the code corrected...
    > Ctrl-C doesn't work, neither does anything
    > else I tried...

    Please indicate what those are... so folks don't suggest solutions you've already
    tried.

    I've had some success with Ctrl-Break on inadvertent endless Loops.

    --
    hth
    Al Camp
    Candia Computer Consulting - Candia NH
    http://home.comcast.net/~cccsolutions

    "Gijs van Swaaij" <g.vanswaaij@gmail.com> wrote in message
    news:1150462944.702926.289670@f6g2000cwb.googlegroups.com...
    > Just a quick question: how can I kill an infinite loop without losing
    > my unsaved data? I'm asking because I just lost half an hour of work
    > after ending access with Task Manager, after it had entered an infinite
    > loop. For the second time... Ctrl-C doesn't work, neither does anything
    > else I tried. Does anyone know how I can end it?
    >
    > Thanks,
    > Gijs van Swaaij
    >
     
  5. John Vinson

    John Vinson
    Expand Collapse
    Guest

    On 16 Jun 2006 06:02:24 -0700, "Gijs van Swaaij"
    <g.vanswaaij@gmail.com> wrote:

    >Just a quick question: how can I kill an infinite loop without losing
    >my unsaved data? I'm asking because I just lost half an hour of work
    >after ending access with Task Manager, after it had entered an infinite
    >loop. For the second time... Ctrl-C doesn't work, neither does anything
    >else I tried. Does anyone know how I can end it?
    >
    >Thanks,
    >Gijs van Swaaij


    Ctrl-Break (often repeatedly).

    John W. Vinson[MVP]
     
  6. Larry Linson

    Larry Linson
    Expand Collapse
    Guest

    "Gijs van Swaaij" <g.vanswaaij@gmail.com> wrote in message
    news:1150462944.702926.289670@f6g2000cwb.googlegroups.com...
    > Just a quick question: how can I kill an infinite loop without losing
    > my unsaved data? I'm asking because I just lost half an hour of work
    > after ending access with Task Manager, after it had entered an infinite
    > loop. For the second time... Ctrl-C doesn't work, neither does anything
    > else I tried. Does anyone know how I can end it?


    Ctrl-Break always works if you happen to have a DoEvents in the loop.
    Otherwise, you may have to click it over and over and over and just hope
    something causes a break in the executing code so it can be sensed and
    responded-to.

    The fortunate thing is, if you code in a structured manner, VBA makes it
    more difficult to create endless loops than it was, back in the "olden days"
    in Assembler Language.

    Larry Linson
    Microsoft Access MVP

    Larry Linson
    Microsoft Access MVP
     
  7. Al Camp

    Al Camp
    Expand Collapse
    Guest

    Hi Larry,
    Looks like your "signature" on your last post got started on a loop... :-D
    Al Camp

    "Larry Linson" <bouncer@localhost.not> wrote in message
    news:%23iSfcvokGHA.1324@TK2MSFTNGP04.phx.gbl...
    >
    > "Gijs van Swaaij" <g.vanswaaij@gmail.com> wrote in message
    > news:1150462944.702926.289670@f6g2000cwb.googlegroups.com...


    > The fortunate thing is, if you code in a structured manner, VBA makes it more difficult
    > to create endless loops than it was, back in the "olden days" in Assembler Language.
    >
    > Larry Linson
    > Microsoft Access MVP
    >
    > Larry Linson
    > Microsoft Access MVP
    >
     
  8. Gijs van Swaaij

    Gijs van Swaaij
    Expand Collapse
    Guest

    Thanks for all the advice! I just recreated an infinite loop, and
    ctrl-break works.

    Gijs van Swaaij


    Al Camp schreef:

    > Hi Larry,
    > Looks like your "signature" on your last post got started on a loop... :-D
    > Al Camp
    >
    > "Larry Linson" <bouncer@localhost.not> wrote in message
    > news:%23iSfcvokGHA.1324@TK2MSFTNGP04.phx.gbl...
    > >
    > > "Gijs van Swaaij" <g.vanswaaij@gmail.com> wrote in message
    > > news:1150462944.702926.289670@f6g2000cwb.googlegroups.com...

    >
    > > The fortunate thing is, if you code in a structured manner, VBA makes it more difficult
    > > to create endless loops than it was, back in the "olden days" in Assembler Language.
    > >
    > > Larry Linson
    > > Microsoft Access MVP
    > >
    > > Larry Linson
    > > Microsoft Access MVP
    > >
     

Share This Page