Re: Can't Debug COM Interface

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: OpenOCD, was: Re: Freescales Idea of Open Source JTAG
    ... some parts of GDB may have direct support for specific JTAG ...  There is also a graphics interface, ... CodeBlocks, etc., use gdb as their back-end debugger. ...
    (comp.arch.embedded)
  • Re: How to connect to children process
    ... Main problem is amount of manual operations required per debug cycle. ... connection to DLL with debugger takes sensible amount of time and manual ... Is the main problem that the debugger keeps symbols file loaded ... AFAIK that's how VS2003 debugger works, but WinDbg should usually ...
    (microsoft.public.vsnet.debugging)
  • Re: OpenOCD, was: Re: Freescales Idea of Open Source JTAG
    ... some parts of GDB may have direct support for specific JTAG ... There is also a graphics interface, ... CodeBlocks, etc., use gdb as their back-end debugger. ... The middle-end supports the language and the target architecture. ...
    (comp.arch.embedded)
  • Re: Need Help Debugging
    ... you should use straight and plain ADPlus.VBS from the debugger package. ... debug info loaded, etc... ... does that avoid using the stack ?!? ... which is our custom CRITICAL_SECTION class. ...
    (microsoft.public.win32.programmer.kernel)
  • gnome-settings-daemon crashed twice
    ... To debug your program, run it with the --sync command line ... backtrace from your debugger if you break on the gdk_x_errorfunction.) ...
    (GNOME)