2022.01.08 03:45 AM
Hello experts,
Use below steps to replicate this issue.
C:\q\w32\q.exe
\p 10000
a:10
C:\q\w32\q.exe -p 10001
h:hopen `::10000
h"a"
10 // Successfully able to access the variable a in the first kdb+ process.
counter:{k+1}
counter[]
// This causes below error
'k
[1] counter:{k+1}
q))
h"a"
This command hangs and I have to restart the first kdb+ process.
Is this expected behavior?
System Details:
Windows - KDB+ 3.6 2019.04.02 (kdb+ 32bit edition)
2022.01.08 07:52 AM - edited 2022.01.08 07:53 AM
Yes it's expected as the first process is in debug mode - https://code.kx.com/q/basics/debug/#debugger
However, you don't need to restart the first process, you can resume or abort execution from the debugger depending on your use case. The sync message from the 2nd process should then be processed.
https://code.kx.com/q/basics/debug/#resume
https://code.kx.com/q/basics/debug/#abort
2022.01.08 07:52 AM - edited 2022.01.08 07:53 AM
Yes it's expected as the first process is in debug mode - https://code.kx.com/q/basics/debug/#debugger
However, you don't need to restart the first process, you can resume or abort execution from the debugger depending on your use case. The sync message from the 2nd process should then be processed.
https://code.kx.com/q/basics/debug/#resume
https://code.kx.com/q/basics/debug/#abort
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.