I have a problem using the method: Dispatch.call(….). This Method is called cyclic (every second). The problem is that each call lasts longer. So after about 100 cycles the duration has doubled.
Here are some details: I am using Jacob Com Bridge in Java to control PSS Sincal 11.0. The method is highlighted and the whole class is in the attachment. It also shows how I found out that the Dispatch.call(…) lasts longer and longer…
public boolean start_simulation() {
//long startTime = System.currentTimeMillis();
Dispatch.call(this.siSimulation, "Start", this.Calculation_method);
//System.out.println(System.currentTimeMillis() - startTime);
int stat_id = Dispatch.get(this.siSimulation, "StatusID").getInt();
if (stat_id != SincalController.ID_SimulationOK) {
return false;
} else {
return true;
}
}
I have nothing found on your website and google where a similar problem occurred. So I would be grateful if you could help me!
Thanking you in advance, best regards, Andreas.