Groups | Blog | Home
all groups > visual studio .net debugging > august 2003 >

visual studio .net debugging : Advanced COM Interop debugging with VS.NET 2003


joerg NO[at]SPAM krause.net
8/23/2003 4:51:34 PM
Hi,

I'm try to debug a c# app with some interop stuff.

During an interface call I get a System.NullReferenceException.

It is obviously a callback there and during the call some other
code of my program is called. The stacktrace shows the call, not the
callback where the error happens.

Is there any way to trace what the callback does to check out why it
fails?

(More concrete: The call is view.UIActivate from IOleDocumentView
interface, which initialises the control and calls some stuff to be
displayed, somewhere is the error, but can't go step by step here).

Are there any more advanced debugging tools on the market?

Any idea would be helpful, thank you.

xiaoxie NO[at]SPAM online.microsoft.com (
8/25/2003 12:18:59 PM
Hi Joerg,

If the exception is thrown when calling some of your code, can't you break
at the correct point in VS.NET?

There is more powerful debugging tool, and it's free. You may get WinDBG
from:
http://www.microsoft.com/whdc/ddk/debugging/installx86.mspx

WinDBG is mainly for unmanaged code. You may get info on debugging managed
code with WinDBG from the link below:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/
DBGrm.asp?frame=true

Best regards,
Xiao Xie
Microsoft Developer Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Jörg Krause
8/25/2003 3:06:33 PM
Hi Xie,

--
""Xie Xiao"" <xiaoxie@online.microsoft.com> schrieb im Newsbeitrag
news:6$I5TMwaDHA.1948@cpmsftngxa06.phx.gbl...
[quoted text, click to view]
[...]
I'll give it a try and let you know how it works in my situation.

Joerg

AddThis Social Bookmark Button