tea_xiao
Newbie level 5
I have a questions about interprocess command.
For example,
dataHdl = errHdl = lambda((cid data) printf("%s\n" data))
postFunc = lambda((cid s)
if(zerop(s) then
printf("Successful! \n")
)
)
foreach(command cmdList
ipcBeginProcess(
command "" dataHdl errHdl postFunc
)
)
Because of license, I must run the command one by one. So after executing each ipcBeginProcess, I need to wait for a moment before executing the next command in order to release the license.
But if I add ipcSleep or ipcWait following ipcBeginProcess, I can do nothing when running this code in the CIW.
How to fix it?
For example,
dataHdl = errHdl = lambda((cid data) printf("%s\n" data))
postFunc = lambda((cid s)
if(zerop(s) then
printf("Successful! \n")
)
)
foreach(command cmdList
ipcBeginProcess(
command "" dataHdl errHdl postFunc
)
)
Because of license, I must run the command one by one. So after executing each ipcBeginProcess, I need to wait for a moment before executing the next command in order to release the license.
But if I add ipcSleep or ipcWait following ipcBeginProcess, I can do nothing when running this code in the CIW.
How to fix it?