Hi, after upgrading our version of RO SDK from version 6.0.39 to the latest version, “Invalid pointer operation” exception starts happening in our DataSnap modules.
After some debuging I found that this exception happened when we change CommandText property of the CDS from client side.
The exception was raised in TAppServer_Invoker.Invoke_AS_Execute procedure (line 296), where its tries to free “__in_Params” variable. The problem is that “__in_Params” variable is already freed by TRODataSnapBaseAppServer.AS_Execute procedure (line 166). So I have to choose either to fix freeing of “__in_Params” in TAppServer_Invoker.Invoke_AS_Execute or not to free “Params” in TRODataSnapBaseAppServer.AS_Execute.
Because of new mechanism of freeing of input var parameters in the latest version of RO (using TROObjectDisposer), I’ve decided to fix freeing of “Params” argument in TRODataSnapBaseAppServer.AS_Execute procedure (line 166), I’ve jus comment line 166 (“FreeAndNil(Params);”).
Now my application server works, but could you fix this issue in the next version of RO SDK please?