Loading ...
Sorry, an error occurred while loading the content.

47142Re: [libertybasic] Program still executing in background during NOTICE (works fine in debug mode)

Expand Messages
  • Stefan Pendl
    Nov 4, 2013
    • 0 Attachment
      Am 04.11.2013 20:04, schrieb mdkirb88@...:
      > Hi everyone,
      > I have a timer set to execute the same code every 1 second. Every time
      > it executed the code it calls numerous subroutines. One of these
      > subroutines gives the user notices using the NOTICE function. During
      > the NOTICE I want the timer to stop executing. It does this in debug
      > mode, but constantly executes the code in the background otherwise. The
      > fields on the screen that are being updated by the timer remain
      > unchanged as long as the NOTICE is visible. However, when pressing OK
      > on the notice everything rapidly updates.
      > Does anyone know why this is happening and/or how to get around it?

      I think that the timer delay is to short and that timer events are
      building up even without the notice.

      I would go the following route:

      1) timer fires
      2) disable timer
      3) execute your routines
      4) enable timer

      If you disable the timer as the first action in your timer event
      handler, you should be fine, since there is no chance to build up timer

      Stefan Pendl

      LB 4.04 Pro ... http://www.libertybasic.com/assist.html
      LB 4.04 ....... http://www.libertybasic.com/lb404setup.exe

      LB Community Wiki .............. http://basic.wikispaces.com/
      LB Programmer's Encyclopedia ... http://lbpe.wikispaces.com/
      LB Bug Tracker ................. http://libertybasicbugs.wikispaces.com/

      Books at http://www.lulu.com/ and http://www.amazon.com/
      Alyce Watson ... APIs for Liberty BASIC
      Carl Gundel .... Beginning Programming with Liberty BASIC

      Windows 7 Home Premium 64-bit SP1
      AMD Turion X2 RM-70 2GHz, 4GB RAM
    • Show all 2 messages in this topic