# Embedding Issue with 1.6.0-rc1 and UseShellExecute = false

**URL:** https://discourse.julialang.org/t/embedding-issue-with-1-6-0-rc1-and-useshellexecute-false/56440
**Category:** General Usage
**Created:** [March 3, 2021, 8:40pm UTC](https://discourse.julialang.org/t/embedding-issue-with-1-6-0-rc1-and-useshellexecute-false/56440 "2021-03-03T20:40:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Brad\_Carman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brad_carman/32/17631_2.png) [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)
#### Post date: [March 3, 2021, 8:40pm UTC](https://discourse.julialang.org/t/embedding-issue-with-1-6-0-rc1-and-useshellexecute-false/56440/1 "2021-03-03T20:40:07Z")

</div>

I’m attempting to embedded Julia in a c# application. This application is launched from another c# app using the .NET System.Diagnostics.Process class which can be used to start another exe process. I have set the RedirectStandardOutput = true and UseShellExecute = false in order to capture the output stream of the exe/Julia. I have determined that Julia cannot start (i.e. `jl_init_with_image__threading()` fails) when UseShellExecute=false, Previously with v1.5.3 this worked. So I’m wondering if someone knows what might have changed in v1.6.0 that is related to the shell that might cause this failure. I’m on a Windows 10 machine. And I’m not 100% sure I know what a “shell” is exactly, but it’s likely related to how a Windows process is hosted I’m assuming.

In quick summary…

`jl_init_with_image__threading()` works with:

- v1.5.3  
UseShellExecute = false

- v1.6.0  
UseShellExecute = true

but fails with…

- v1.6.0  
UseShellExecute = false

---

<div class="post-metadata">

### Author: ![Brad\_Carman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brad_carman/32/17631_2.png) [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)
#### Post date: [March 3, 2021, 11:19pm UTC](https://discourse.julialang.org/t/embedding-issue-with-1-6-0-rc1-and-useshellexecute-false/56440/2 "2021-03-03T23:19:30Z")

</div>

Correction: the issue is not the Shell, it’s with the `StartInfo.RedirectStandardOutput = true`

Therefore, v1.6.0 seems to crash at `jl_init_with_image__threading()` because something with the output stream is changed. Again, this worked with v1.5.3, so I’m curious if anyone know what’s changed related to the output stream?
