How to debug vb 6.0 dll from C#.Net Console application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DKn
    New Member
    • Aug 2007
    • 53

    How to debug vb 6.0 dll from C#.Net Console application

    Hello,

    From C#.Net Console application I am using Two methods of vb 6.0 dll.
    I added vb 6.0 dll as reference to the C#.Net Project.
    One method is working fine, second method is giving some exception. I want to debug that in Vb 6.0 project to find out In Which line the problem is.

    I tried in C#.Net debug menu , attach to Process and select this VB application. But not going to that vb 6.0 Methods.

    Any other way to debug..
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What is the error message you are getting?

    Comment

    • DKn
      New Member
      • Aug 2007
      • 53

      #3
      Originally posted by Frinavale
      What is the error message you are getting?
      This is the exception

      An unhandled exception of type 'System.Runtime .InteropService s.COMException' occurred in HandleCountSamp le.exe
      Additional information: Exception from HRESULT: 0x80041003.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by DKn
        This is the exception

        An unhandled exception of type 'System.Runtime .InteropService s.COMException' occurred in HandleCountSamp le.exe
        Additional information: Exception from HRESULT: 0x80041003.
        You cannot debug "into" the VB assembly that you're using.
        What you can try to do is Marshal the VB code so that .NET handles it properly.
        Look up Marshaling.

        -Frinny

        Comment

        Working...