....
....
....
...
"Vincent Parrett (Atozed Software)" wrote:
> Ok, I'm getting closer to a solution. I found that I can call GetErrorInfo
> in my win32 host and the QueryInterface on the IErrorInfo reference for the
> CLR Exception interface in mscorlib. This works because when hosting the clr
> interop is involved and the CCW automatically does the SetErrorInfo when a
> managed exception is thrown. This gives me access to the real exception
> information and the stack trace, well almost...
>
> The issue I have now is that if the exception is thrown in an AppDomain that
> I created from my win32 host, the StackTrace property of the exception
> object always returns an empty string. If the exception is thrown from the
> default AppDomain then I get the StackTrace ok. I suspect this is an
> interface marshalling issue, but I don't have a clue how to resolve this. I
> really don't want to have to load my assemblies into the default AppDomain
> as I would like to be able to unload/reload the assemblies without having to
> restart the app.
>
> Any clues?
>
> --
> Regards
>
> Vincent Parrett
> Atozed Software
http://www.atozedsoftware.com > My blog :
http://blogs.atozed.com/vincent > ----------------------------------------
> Automate your Build Process with FinalBuilder
>
>