diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e933d39418..67aee76d6b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2000-11-23 11:11 UTC+0800 Ron Pinkas + * source/rtl/idle.c + ! Added Reset Logic to HB_IDLESTATE() + 2000-11-23 19:50 UTC+0100 Ryszard Glab *source/rdd/dbfcdx/dbfcdx1.h diff --git a/harbour/source/rtl/idle.c b/harbour/source/rtl/idle.c index 50f61f7392..5e38da5f15 100644 --- a/harbour/source/rtl/idle.c +++ b/harbour/source/rtl/idle.c @@ -168,6 +168,12 @@ void hb_idleShutDown( void ) HB_FUNC( HB_IDLESTATE ) { hb_idleState(); + + if( hb_vm_uiIdleTask == hb_vm_uiIdleMaxTask ) + { + hb_vm_uiIdleTask = 0; + hb_vm_bCollectGarbage = TRUE; + } } /* add a new background task and return its handle */