A
Andrew
I am writing a C# application that uses an unmanaged C++ dll. The
unmanaged C++ dll is wrapped in a managed C++ assembly.
I would like to capture what is being written to stdout and stderr by
the unmanaged dll. I am not spawning a new process for this dll, it
runs in the C# application process.
I've tried PInvoking freopen but I get an exception about a NULL
reference.
I've tried running freopen in the managed C++ code, but I get the same
NULL reference exception.
Anyone have any ideas?
Thanks,
- Andrew
unmanaged C++ dll is wrapped in a managed C++ assembly.
I would like to capture what is being written to stdout and stderr by
the unmanaged dll. I am not spawning a new process for this dll, it
runs in the C# application process.
I've tried PInvoking freopen but I get an exception about a NULL
reference.
I've tried running freopen in the managed C++ code, but I get the same
NULL reference exception.
Anyone have any ideas?
Thanks,
- Andrew