We are having a problem that I would like to hear if one of you have a solution for .
We are running thin client, 9.2.1 and we have a Menu system which starts threads of subprograms.
When these subprograms reads a record which is locked we normally call C$sleep and read again after a few ticks. But unfortunately this behavior makes the focus of the window change to another subprogram. These is of course done because windows concludes that the subprogram with the sleep does not need ressources right now, and it would be a good idea to bring anoher program in focus. We have stopped using the c$sleep and calls a while loop, and it is functioning very well, but unfortunately this behavior uses a lot of CPU etc. Do you see any other possibilities ?
(we have also tried accept upon time, but this brings the program in focus, also if the user has switched the program in background)