Cancelling a request
To cancel a previously submitted asynchronous request you should use the netslkill() call. It notifies the server that the request has been cancelled by the user. Below is a short code example.
Submit the asynchronous request
status = netslnb("inttest()", &i); |
status = netslkill(request); |
NetSolveOK - the request has been successfully cancelled
NetSolveInvalidRequestID - the request ID didn't correspond to a request that you previously submitted
otherwise the return status represents the specific error that occurred