# IDLE() set in the frame's ThisWindow.Init embed runs 10-20 times a second

**URL:** <https://forums.softvelocity.com/t/idle-set-in-the-frames-thiswindow-init-embed-runs-10-20-times-a-second/2240>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 15, 2026, 8:05pm UTC](https://forums.softvelocity.com/t/idle-set-in-the-frames-thiswindow-init-embed-runs-10-20-times-a-second/2240 "2026-11-15T20:05:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 15, 2026, 8:05pm UTC](https://forums.softvelocity.com/t/idle-set-in-the-frames-thiswindow-init-embed-runs-10-20-times-a-second/2240/1 "2026-11-15T20:05:31Z")

</div>

**Applies to:** posted in softvelocity.products.c55ee in 2002; the embeds named are ABC ThisWindow embeds. No exact version is named.

**Problem**

The poster wanted a source procedure to run every 60 seconds; it loops through a file and sets a global flag. He placed `IDLE(SomeProc,60)` in the ThisWindow.Init embed (priority 8030) of the app frame. The procedure then ran about 10 to 20 times a second.

**Solution**

Several alternatives were offered; none was reported back by the poster.

1. Put it in the ThisWindow / Init / Enter Procedure Scope embed (priority 2700). One poster wrote that it "works fine" there.
2. Use a timer instead: place `timer(6000)` on the main frame and call the procedure from the timer embed point. Two posters preferred this; one called it much easier to control.
3. Look at the Clarion Magazine article on IDLE, which came with a sample app.
4. One poster's view was that IDLE belongs in the accept loop, not in window init.

**Caveats**

- One poster wrote that in a multi-DLL app IDLE executes continuously. He had reported it some time before and, as far as he had seen, later patches had not changed it.
- The same poster wrote that to emulate IDLE with a timer you have to check for inactivity too, through KEYCODE().
- The poster did not say which answer worked for him.

**Today (2026)**

Not re-tested. Two posters preferred the timer, which does not rely on IDLE; a reader on a current build may add what IDLE does there.

**Sources:** Jens M. (Jul 2002, the question), Steve P., James C., Bjarne H., a poster (Jul 2002), Geoff S. (Aug 2002) in softvelocity.products.c55ee.
