[Mono-list] Source lines in backtraces ....
Dan Lewis
dihlewis@yahoo.co.uk
Wed, 22 May 2002 17:03:39 +0100 (BST)
On Wed, 2002-05-22 at 13:01, Martin Baulig wrote:
> That's exactly the problem. We're using the "System.Diagnostics.SymbolStore"
> interface, but we don't know how to make it work with microsofts symbol
writer:
>
> Once you have an `ISymbolWriter' instance, according to the docu the first
thing
> you must do is to call its Initialize() function - this function takes an
`IntPtr'
> as first argument and we do not know what this is.
>
> Both using `new IntPtr (0)' and not calling the Initialize() function at all
failed.
void Initialize(IntPtr emitter, string filename, bool fFullBuild);
emitter: The metadata emitter interface.
As well as the managed class library, Microsoft .NET provides an unmanaged API
for much of their execution engine's functions. This is how native programs
like csc and ildasm emit and import .NET assemblies.
You may want to take a look at the include directory in the Framework SDK,
where you'll find the COM interface IMetaDataEmit defined in cor.h. My guess is
that emitter is an instance of this interface. Not that that helps you much ;-(
Dan.
PS excellent work on the source line tracing, Martin!
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com