The code below used to work prior to 0.19.0. This procedure runs in a thread 
and the resulting FlowVar is stored in a sequence in the calling routine. It 
seems to only error out if the folder does not exist, but I'm not certain about 
that. It runs fine sequentially (without threading). This is running in Windows 
and accessing other Windows servers. The program simply ceases to run while 
collecting data with no tracebacks or other message indicating what the issue 
may be. A system window appears that states the program has stopped working.
    
    
    proc searchServer(name, server: string): string {.thread.} =
      let sLocation = &"//{server}/C$/Users/"
      if (existsDir(sLocation)):
        return(server)
      else:
        return("")
    
    
    Run

I suspect it may have something to do with spawning since it has to run as 
domain admin user because of the access to the C$ share, but I haven't found 
anything to indicate that could be the issue. I tried to verify that the 
previous version (0.18.0) works, but couldn't because one of the libraries used 
int he project wasn't compatible. I was hoping someone here might know why this 
is happening. Any ideas?

Reply via email to