Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Debugging / July 2003

Tip: Looking for answers? Try searching our database.

Debugging a COM object used by a C# application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aaron Queenan - 31 Jul 2003 16:46 GMT
I have a COM object (implemented in C++) that works fine from VBA (in Excel)
and other environments, but doesn't work from within .NET when called by a
C# application.  The function typecasts the IDispatch* to the C++ type it
knows it must be and accesses some private members.

1.    How can I debug this function?  If I set a breakpoint, it gets ignored
and a ? put in the margin instead of a circle.  If I use DebugBreak() it
doesn't do anything.

2.    Does .NET do anything funny with its 'object' type like return a proxy
rather than the original object?  I am calling the COM object method within
an event handler for an event from that object, and I pass the 'object'
received in the event handler directly to the method.

Thanks,
Aaron Queenan.
Aaron Queenan - 31 Jul 2003 17:49 GMT
I have a COM object (implemented in C++) that works fine from VBA (in Excel)
and other environments, but doesn't work from within .NET when called by a
C# application.  The function typecasts the IDispatch* to the C++ type it
knows it must be and accesses some private members.

1.    How can I debug this function?  If I set a breakpoint, it gets ignored
and a ? put in the margin instead of a circle.  If I use DebugBreak() it
doesn't do anything.

2.    Does .NET do anything funny with its 'object' type like return a proxy
rather than the original object?  I am calling the COM object method within
an event handler for an event from that object, and I pass the 'object'
received in the event handler directly to the method.

Thanks,
Aaron Queenan.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.