Author Topic: xretrace timer doesn't start  (Read 1471 times)

Graeme

  • Senior Community Member
  • Posts: 2828
  • Hero Points: 347
xretrace timer doesn't start
« on: September 11, 2021, 11:14:01 AM »
In V26 beta 3 (and beta 2) the timer used by xretrace doesn't start when start_xretrace is called from definit.  V25 and earlier versions don't have this problem.  Sometimes if I call start_xretrace twice in the definit it will start.  Steps to load xretrace and test are in the attached pdf.  I have temporarily worked around this by making commands such as xretrace_cursor check if the timer is running and start it if not (it starts ok at this point) but I would like to have the timer running right from startup.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7099
  • Hero Points: 540
Re: xretrace timer doesn't start
« Reply #1 on: September 12, 2021, 01:28:36 PM »
We will look into this

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7099
  • Hero Points: 540
Re: xretrace timer doesn't start
« Reply #2 on: September 12, 2021, 04:59:18 PM »
autosave.e is deleting/killing a timer by mistake.

Fixed for beta 4

I've attached a fix for beta 3 for this

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7099
  • Hero Points: 540
Re: xretrace timer doesn't start
« Reply #3 on: September 12, 2021, 05:05:02 PM »
I think the problem you are having with xgpinhere, is that when the editor is invoked, it's possible that it could already be 1. I suggest you initialize to 0 in your definit(). That will guarantee that it has the right value at startup.

Graeme

  • Senior Community Member
  • Posts: 2828
  • Hero Points: 347
Re: xretrace timer doesn't start
« Reply #4 on: September 12, 2021, 10:02:29 PM »
ah, I didn't think of it being initialization because it happened a long time after a restart, due to xretrace not starting.  Thanks and thanks for the timer fix.