All times I try to execute the method bellow I get "Object is in Asynchronous mode. Access not allowed":
MyPIMod.PIUnitBatchSearch(ptStartTime, ptEndTime, "", "", "", "", paStatusClass, Type.Missing);
I tried debug step by step and it pass all the time. My guess, parameter PIAsynchStatus for this method cause this problem. What can I do to fix this?