José Joye said:
Thanks for your information. Howerver, this is still not clear to me:
1)
Assuming you are correct, what is the purpose of the property
"Optimize Code" (set to True in Release and to False in Debug)?
The main problem is the VS-IDE. It only allows to select either
"Generate Debuggin Information" to true or false. True means "/debug" and
false does not add any switch.
But the "C# compiler" doc also knows "/debug

dbonly" which is between this
two variants.
If you specify "/o" and "/debug

dbonly", then the DebugableAttribute is
NOT put into the assembly!
But with VS-IDE you cannot make this!
One problem still exists:
If you generate an assembly with this two switches, you are still not able
to get line infos from the "StackFrame" class.
Maybe you will get some info from the sos-ext to windbg... but for this
your need the WHOLE memory dump!!!
2)
I could not imagine that such important features (line# and some other
vital information that can be got from StackTrace()) are simply not
available in Release mode. How could you give support to your customer
without them?
This is also my main problem!
With unmanaged C++ you can write an small MiniDump and you will have all
infos you need (incl. line infos if you have the correct PDB file)
It would be great if someone from Microsoft could give some answers...
--
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp