Hello All

Pritpal Bedi wrote:
> 
> I use something like this code
> 
>          DO WHILE .t.
>             nKey := b_Inkey()
> 
>             IF nKey != 0 .and. nKey != 1101  // HB_K_RESIZE
>                EXIT
>             ENDIF
> 
>             hb_idleState()
>          ENDDO
> 
> hb_idleState() was allowing me to release CPU cycles and was 
> working perfectly till I last touched Vouch. But of lately I was so 
> indulged in HBQT that I simply ignored my product. And so I cannot
> trace back at what point hb_idleState() went crazy. Now it generates
> run-time error refering to
> 
> "Object destructutor failure"
> "Reference to freed block"
> 

To add a note that hb_idleState() works ok with primary thread == 1,
any subsequent thread generates RT error.

I am compiling with MSVC 2008. 
Cannot compile with BCC as it is broken.
Cannot compile with MINGW as it does not accepts .res more than one.

Without hb_idleState() call everything works fine but then CPU consumption
is 97%.

Regards
Pritpal Bedi 

-- 
View this message in context: 
http://old.nabble.com/CPU-Consumption-and-hb_idleState%28%29-tp26240902p26249073.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to