You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i get the following error when running the asyncipc example
example.nim(12) example
asyncipc.nim(238) open
oserr.nim(110) raiseOSError
Error: unhandled exception: The parameter is incorrect.
[OSError]
Error: execution of an external program failed: 'e:\inter-process\example.exe '
import asyncdispatch
import asynctools/asyncipc
var inBuffer =newString(64)
var outBuffer ="TEST STRING BUFFER"# create new IPC objectlet ipc =createIpc("test")
# open `read` side channel to IPC objectlet readHandle =open("test", sideReader)
# open `write` side channel to IPC objectlet writeHandle =open("test", sideWriter)
# writing string to IPC objectwaitForwrite(writeHandle, cast[pointer](addr outBuffer[0]), len(outBuffer))
# reading data from IPC objectvar c =waitForreadInto(readHandle, cast[pointer](addr inBuffer[0]), 64)
inBuffer.setLen(c)
doAssert(inBuffer == outBuffer)
echo inBuffer
# Close `read` side channelclose(readHandle)
# Close `write` side channelclose(writeHandle)
# Close IPC objectclose(ipc)
output
example.nim(12) example
asyncipc.nim(237) open
oserr.nim(110) raiseOSError
Error: unhandled exception: The parameter is incorrect.
[OSError]
Error: execution of an external program failed: 'e:\inter-process\example.exe '
i get the following error when running the asyncipc example
if i add
echo getLastError()
after this line it seems to work
https://github.com/cheatfate/asynctools/blob/master/asynctools/asyncipc.nim#L233
The text was updated successfully, but these errors were encountered: