mauede
Well-known member
I am using the following statements, provided by Varian, to connect to the Velocity Engine and consequently be able to use the Velocity API library
My code worked with a previous release of Velocity API.
I have just linked the code with the ".dll" from the new Velocity API release and recompiled my code that now dies precisely on the shown "orThrow" statement.
The input parameters are the same as before as they depend on the user installation.
Clearly, something happens that triggers a not handled exception.
To try to understand the cause I would need to print out the content of the variable "result" but since it is inside an Action, I can't do that by using the debugger.
I wonder whether it is possible to transform the two above-listed statements into a function that returns the "result".
Thank you very much
C#:
Action<bool> orThrow = result => OrThrow(result, engine);
orThrow(engine.loginToGrid(UserName, Password, GRID_IP, GRID_PORT, VelocityDataBase));
My code worked with a previous release of Velocity API.
I have just linked the code with the ".dll" from the new Velocity API release and recompiled my code that now dies precisely on the shown "orThrow" statement.
The input parameters are the same as before as they depend on the user installation.
Clearly, something happens that triggers a not handled exception.
To try to understand the cause I would need to print out the content of the variable "result" but since it is inside an Action, I can't do that by using the debugger.
I wonder whether it is possible to transform the two above-listed statements into a function that returns the "result".
Thank you very much