I have some code that starts a process by using Process.Start(ProcessStartInfo). I see from the documentation that this method can return null if an existing process is reused.
[Returns a] new Process component that is associated with the process resource, or null if no process resource is started (for example, if an existing process is reused).
What does it mean for an existing process to be reused and under what circumstances will this happen?
This would happen if you call pass a file (not an EXE), and the file is configured to launch using DDE.
For example, this is how Office applications open files in existing instances.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With