Hello, I am switching to version 4.0 and noticed some of my processes aren't running due to a handle error, like below:
'close. OS reports: The handle is invalid.
[1] C:\s\generateQuery.q:32: produceReport:
trap: @[{[x] x "exit 0";}; h; `trapped];
handle_close handle;
^
i:i+1;
The value of the handle variable is 1104, which I'm guessing is the port. I used to use version 3.5 and it ran fine, but when I switch to 4.0 I get the message above. I am guessing there is some kind of port error or change when I switched to the new version.
If anyone has any information on this, please let me know. I'm not sure if I was looking at the right documentation regarding ports and any changes.
The handle is an OS level file handle, not the port number. In fact it is possible to open multiple connections to the same process and naturally they get different handles.
Does the handle show up in .z.W before you try to close it?
Can you check the logs of the remote process to make sure it's working fine?
Thanks for your answer. Unfortunately I'm fairly new to kdb so I will need to take a look to find out more about this. I'll let you know if I find the answers to your questions. Do you know if there's anything I can read up on about this?
Hello, thank you for your answer. It looks like commenting that out worked. I wonder why that line wasn't throwing an error when I used the v3.5 version, however. Is v4.0 more sensitive to this? And yes, the handle_close function closes the handle, similar to the "exit 0" command.