if the ctrx_sync on window fails, please comment and use the ctrx sync on bit map funciton. this should slove your problem and macke sure you set the right sycn on bitmap...
for instance if there is button that you are going to clcik on that window you have capture that in your sync on bitmap funtion, so that even though the window has come it will wait for the button to come alive for further process. Please let me kknow you are still unclear