When debug, the program does not respond

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shai

    When debug, the program does not respond

    Hi,
    I have a program that I did not write but I need to add it some features.
    The program is written in VB.NET 1.1.
    The program use COM Object.
    When I run the program it works well, but when I try to debug it with F11,
    the program stuck (does not respond), after a minute it step to the next line
    and throws Exception of type - System.Threadin g.ThreadStopExc eption the
    message is “Thread was being stopped”.
    What am I doing wrong?
    Thanks in advance.

  • Greg Young

    #2
    Re: When debug, the program does not respond

    Try ctrl+alt+break (break all in the debug menu), you may have to enable
    unmanaged debugging to see what is currently happenning. Is the com object
    hosted in another process?

    Cheers,

    Greg Young
    MVP - C#


    "shai" <shai@discussio ns.microsoft.co mwrote in message
    news:411E7ACB-A3C2-41D9-962B-2661E948B9B3@mi crosoft.com...
    Hi,
    I have a program that I did not write but I need to add it some features.
    The program is written in VB.NET 1.1.
    The program use COM Object.
    When I run the program it works well, but when I try to debug it with F11,
    the program stuck (does not respond), after a minute it step to the next
    line
    and throws Exception of type - System.Threadin g.ThreadStopExc eption the
    message is "Thread was being stopped".
    What am I doing wrong?
    Thanks in advance.
    >

    Comment

    • shai

      #3
      Re: When debug, the program does not respond

      Greg Young,
      I had a variable from the COM object in my code.
      I marked it as an inactive code, and since then there is no problem to debug.
      The reason looks strange but it works.
      Thanks for your response.
      Shai.


      "Greg Young" wrote:
      Try ctrl+alt+break (break all in the debug menu), you may have to enable
      unmanaged debugging to see what is currently happenning. Is the com object
      hosted in another process?
      >
      Cheers,
      >
      Greg Young
      MVP - C#

      >
      "shai" <shai@discussio ns.microsoft.co mwrote in message
      news:411E7ACB-A3C2-41D9-962B-2661E948B9B3@mi crosoft.com...
      Hi,
      I have a program that I did not write but I need to add it some features.
      The program is written in VB.NET 1.1.
      The program use COM Object.
      When I run the program it works well, but when I try to debug it with F11,
      the program stuck (does not respond), after a minute it step to the next
      line
      and throws Exception of type - System.Threadin g.ThreadStopExc eption the
      message is "Thread was being stopped".
      What am I doing wrong?
      Thanks in advance.
      >
      >
      >

      Comment

      Working...