Re: Can't Debug COM Interface
- From: "MBO" <markus.boenke@xxxxxx>
- Date: Wed, 18 Jan 2006 16:06:47 +0100
Hello Oleg,
I'm using vb.net from vs.net 2003. The project is a class library. For
debugging I'm using an MFC Application that is calling methods in my com
interface as Host. In this Application I can specify the COM-ProgId that is
Implementing the Interface. This application does not have debug symbols
included, but if I'm programming the COM Server (Interface) either with C++
or based on Java Script using the Windows Scripting Host I can step into, so
using other technologies than .net, it doesn't matter if there are debug
symbols included in the Host application or not. For the vb.net application
I've turned on to include debug info.
Here is a code snipped using Javascript / Windows Scripting Host:
<?XML version="1.0"?>
<?component debug="true" error="true"?>
<component>
<registration
description="FrontRange Contact Center Connector"
progid="VPCC.SampleConnector"
version="1"
classid="{2e829cc2-f7dd-44c7-9a2e-882d3c28e666}"
>
</registration>
<implements type="Automation" id="IACLConnector">
<method name="OnCreate">
<parameter name="bstrHost" />
<parameter name="ushPort" />
</method>
</implements>
<script language="JavaScript">
<![CDATA[
var objCCL;
var strContent = ""; // Full HTML content of the page to be shown
var g_bRequestingData = false;
///////////////////////////////////////////////////////////////////////////////
// CCL calls this method one time after it created connector
function OnCreate(bstrHost, ushPort)
{
debugger;
DoSomething();
}
]]>
</script>
</component>
If I specify in the Host application to use this component, as soon as the
OnCreate method is invoked the debugger halts at the keyword "debugger" in
the OnCreate() function.
Doing the same Implementation of the OnCreate() Method in vb.net, everything
is working the some way, except I can't debug. If I put a breakpoint into
the OnCreate Method, it gets a questionmark saying that there are no debug
symbols available to debug ...
<ComClass(ComClass2.ClassId, ComClass2.InterfaceId, ComClass2.EventsId)> _
Public Class ComClass2
Public Const ClassId As String = "D315B1F7-E7FA-42E1-A6CD-10520885FF8B"
Public Const InterfaceId As String = "A8533B7F-4D74-44AE-9478-35EB89C8D45C"
Public Const EventsId As String = "18C5CD18-D712-4EDB-9734-DA97921E00B3"
Public Sub New()
MyBase.New()
End Sub
Public Sub OnCreate(ByVal bstrServerHost As String, ByVal ushServerPort As
System.UInt16)
DoSomething;
End Sub
End Class
Thanks and Regards
Markus
.
- Follow-Ups:
- Re: Can't Debug COM Interface
- From: Oleg Starodumov
- Re: Can't Debug COM Interface
- References:
- Can't Debug COM Interface
- From: MBO
- Re: Can't Debug COM Interface
- From: Oleg Starodumov
- Can't Debug COM Interface
- Prev by Date: Re: Can't Debug COM Interface
- Next by Date: Re: Can't Debug COM Interface
- Previous by thread: Re: Can't Debug COM Interface
- Next by thread: Re: Can't Debug COM Interface
- Index(es):
Relevant Pages
|