L
Lee Alexander
Hello,
I have spent the past four days nailing down what looks to me like a bug in
the jitter.
Problem
~~~~~~
When my program is run without the debugger attached in release an object is
disposed of whilst execution is still in one of it's methods. I have a C#
application talking to a managed C++ data access layer that then talks to a
managed/unmanaged data access engine. It's whilst in the unmanaged portion
that the object is incorrectly disposed via a system triggered GC.
Workaround
~~~~~~~~~
I have turned off via the linker optimisations for the offending module.
Reproducible code
~~~~~~~~~~~~~
I have a reproducible console based test application that demonstrates the
problem. Unfortunately because it uses the data access engine I cannot post
the code directly here. I only have authorisation to email the source / test
app to a MS employee.
Regards
Lee
I have spent the past four days nailing down what looks to me like a bug in
the jitter.
Problem
~~~~~~
When my program is run without the debugger attached in release an object is
disposed of whilst execution is still in one of it's methods. I have a C#
application talking to a managed C++ data access layer that then talks to a
managed/unmanaged data access engine. It's whilst in the unmanaged portion
that the object is incorrectly disposed via a system triggered GC.
Workaround
~~~~~~~~~
I have turned off via the linker optimisations for the offending module.
Reproducible code
~~~~~~~~~~~~~
I have a reproducible console based test application that demonstrates the
problem. Unfortunately because it uses the data access engine I cannot post
the code directly here. I only have authorisation to email the source / test
app to a MS employee.
Regards
Lee