>>>>Any timers around that could switch work area?
>>>
>>>Yes, there are timers, but it happens too often just between those lines and nowhere else (in this million+ codeline app).
>>>I'm beginning to suspect it is a problem that its at the wrong datasession. Still does not explain why it passes the 1st line without a problem.
>>
>>Well just last week I had a problem where a piece of code would consistently land in the datasession of one of the objects it called, not returning to its own datasession. Happened every time. Then I moved these lines from the init (the whole block containing that call) into a separate method, and then it began working regularly. I had the code repeated, with small changes (aliases, parameter names) to another form, and it still works fine.
>>
>>Dunno why it happened, and dunno what fixed it.
>
>Was there a grid involved?
:)
Yes, of course. The whole thing was a navigational grid, which would then in ARCC select a container to display on the right. This was happening in the init of the container when created.
The funny part is that this is a rather static grid... could have used a listbox as well.