Differences between debugging 2 different projects??? Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter van der Veen

    Differences between debugging 2 different projects??? Help

    Hi

    I've something strange. There is a different when an error occurs in 2
    differen project/solutions.

    In one project when a get an error the debugger stops at the line
    which causes the error and show the error window. This is normal.
    (Title of the dialog = Microsoft Development Environment')

    A second project doesn't do that. It shows another error dialog (the
    one a normal user get) and shows not the line where the error occur.
    (Title of the dialog = the name of the project/application)

    Both the projects are in debug mode and not in the release mode

    Any idea? Debugging is a crime now :(

    Peter
  • Cor Ligthert

    #2
    Re: Differences between debugging 2 different projects??? Help

    Hi Peter,

    Is it possible that before your breakpoint you have a try catch wherin you
    have a messagebox. (This causes as well that your error is past by the
    debugger when it is in that try catch).

    Cor[color=blue]
    >
    > I've something strange. There is a different when an error occurs in 2
    > differen project/solutions.
    >
    > In one project when a get an error the debugger stops at the line
    > which causes the error and show the error window. This is normal.
    > (Title of the dialog = Microsoft Development Environment')
    >
    > A second project doesn't do that. It shows another error dialog (the
    > one a normal user get) and shows not the line where the error occur.
    > (Title of the dialog = the name of the project/application)
    >
    > Both the projects are in debug mode and not in the release mode
    >
    > Any idea? Debugging is a crime now :(
    >
    > Peter[/color]


    Comment

    • Peter van der Veen

      #3
      Re: Differences between debugging 2 different projects??? Help


      No try and catch. It doesn't matter what kind of error and where in
      the code you are. Always the different. Project 1 stops and list the
      line with the error, project2 stops only with a (different) messeage
      box.
      I've tried it also on a different PC but it is the same.

      On Tue, 27 Jul 2004 12:35:04 +0200, "Cor Ligthert"
      <notfirstname@p lanet.nl> wrote:
      [color=blue]
      >Hi Peter,
      >
      >Is it possible that before your breakpoint you have a try catch wherin you
      >have a messagebox. (This causes as well that your error is past by the
      >debugger when it is in that try catch).
      >
      >Cor[color=green]
      >>
      >> I've something strange. There is a different when an error occurs in 2
      >> differen project/solutions.
      >>
      >> In one project when a get an error the debugger stops at the line
      >> which causes the error and show the error window. This is normal.
      >> (Title of the dialog = Microsoft Development Environment')
      >>
      >> A second project doesn't do that. It shows another error dialog (the
      >> one a normal user get) and shows not the line where the error occur.
      >> (Title of the dialog = the name of the project/application)
      >>
      >> Both the projects are in debug mode and not in the release mode
      >>
      >> Any idea? Debugging is a crime now :(
      >>
      >> Peter[/color]
      >[/color]

      Comment

      • Cor Ligthert

        #4
        Re: Differences between debugging 2 different projects??? Help

        Peter

        even when you start debugging with F11?

        Cor
        [color=blue]
        >
        > No try and catch. It doesn't matter what kind of error and where in
        > the code you are. Always the different. Project 1 stops and list the
        > line with the error, project2 stops only with a (different) messeage
        > box.
        > I've tried it also on a different PC but it is the same.
        >
        > On Tue, 27 Jul 2004 12:35:04 +0200, "Cor Ligthert"
        > <notfirstname@p lanet.nl> wrote:
        >[color=green]
        > >Hi Peter,
        > >
        > >Is it possible that before your breakpoint you have a try catch wherin[/color][/color]
        you[color=blue][color=green]
        > >have a messagebox. (This causes as well that your error is past by the
        > >debugger when it is in that try catch).
        > >
        > >Cor[color=darkred]
        > >>
        > >> I've something strange. There is a different when an error occurs in 2
        > >> differen project/solutions.
        > >>
        > >> In one project when a get an error the debugger stops at the line
        > >> which causes the error and show the error window. This is normal.
        > >> (Title of the dialog = Microsoft Development Environment')
        > >>
        > >> A second project doesn't do that. It shows another error dialog (the
        > >> one a normal user get) and shows not the line where the error occur.
        > >> (Title of the dialog = the name of the project/application)
        > >>
        > >> Both the projects are in debug mode and not in the release mode
        > >>
        > >> Any idea? Debugging is a crime now :(
        > >>
        > >> Peter[/color]
        > >[/color]
        >[/color]


        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Differences between debugging 2 different projects??? Help

          * Peter van der Veen <pvdveen@no.spa m.ming.vanbrug. nl> scripsit:[color=blue]
          > I've something strange. There is a different when an error occurs in 2
          > differen project/solutions.
          >
          > In one project when a get an error the debugger stops at the line
          > which causes the error and show the error window. This is normal.
          > (Title of the dialog = Microsoft Development Environment')
          >
          > A second project doesn't do that. It shows another error dialog (the
          > one a normal user get) and shows not the line where the error occur.
          > (Title of the dialog = the name of the project/application)
          >
          > Both the projects are in debug mode and not in the release mode[/color]

          Delete the project's "obj" and "bin" folders and try again.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

          Comment

          • Peter van der Veen

            #6
            Re: Differences between debugging 2 different projects??? Help


            Yep

            I've also created a new solution tested it with one small form and the
            debug was ok.
            Then i added lets say form2 to the solution and load form2 from form1
            and it gave the wrong debug on form2. Form1 gave the normal debug
            message.

            It looks like it has to do something with that form.

            Is there some debug line info in the windows form generated code??


            On Tue, 27 Jul 2004 12:57:59 +0200, "Cor Ligthert"
            <notfirstname@p lanet.nl> wrote:
            [color=blue]
            >Peter
            >
            >even when you start debugging with F11?
            >
            >Cor
            >[color=green]
            >>
            >> No try and catch. It doesn't matter what kind of error and where in
            >> the code you are. Always the different. Project 1 stops and list the
            >> line with the error, project2 stops only with a (different) messeage
            >> box.
            >> I've tried it also on a different PC but it is the same.
            >>
            >> On Tue, 27 Jul 2004 12:35:04 +0200, "Cor Ligthert"
            >> <notfirstname@p lanet.nl> wrote:
            >>[color=darkred]
            >> >Hi Peter,
            >> >
            >> >Is it possible that before your breakpoint you have a try catch wherin[/color][/color]
            >you[color=green][color=darkred]
            >> >have a messagebox. (This causes as well that your error is past by the
            >> >debugger when it is in that try catch).
            >> >
            >> >Cor
            >> >>
            >> >> I've something strange. There is a different when an error occurs in 2
            >> >> differen project/solutions.
            >> >>
            >> >> In one project when a get an error the debugger stops at the line
            >> >> which causes the error and show the error window. This is normal.
            >> >> (Title of the dialog = Microsoft Development Environment')
            >> >>
            >> >> A second project doesn't do that. It shows another error dialog (the
            >> >> one a normal user get) and shows not the line where the error occur.
            >> >> (Title of the dialog = the name of the project/application)
            >> >>
            >> >> Both the projects are in debug mode and not in the release mode
            >> >>
            >> >> Any idea? Debugging is a crime now :(
            >> >>
            >> >> Peter
            >> >[/color]
            >>[/color]
            >[/color]

            Comment

            • Peter van der Veen

              #7
              Re: Differences between debugging 2 different projects??? Help

              I think i fonud the cause of this behavior.

              I deleted one for one the components on the form and tested.
              When i deleted a specific one the bedug info got normal.
              I added the form again and only deleted that component and it was
              fine.

              It's a third party componnent, so i can put this behavior there, but
              how can a component change the way VB.NET displays the debug
              information??

              Peter

              On Tue, 27 Jul 2004 12:29:24 +0200, Peter van der Veen
              <pvdveen@no.spa m.ming.vanbrug. nl> wrote:
              [color=blue]
              >Hi
              >
              >I've something strange. There is a different when an error occurs in 2
              >differen project/solutions.
              >
              >In one project when a get an error the debugger stops at the line
              >which causes the error and show the error window. This is normal.
              >(Title of the dialog = Microsoft Development Environment')
              >
              >A second project doesn't do that. It shows another error dialog (the
              >one a normal user get) and shows not the line where the error occur.
              >(Title of the dialog = the name of the project/application)
              >
              >Both the projects are in debug mode and not in the release mode
              >
              >Any idea? Debugging is a crime now :(
              >
              >Peter[/color]

              Comment

              • Cor Ligthert

                #8
                Re: Differences between debugging 2 different projects??? Help

                Maybe because there is that try and catch in?

                Cor
                [color=blue]
                >
                > I deleted one for one the components on the form and tested.
                > When i deleted a specific one the bedug info got normal.
                > I added the form again and only deleted that component and it was
                > fine.
                >
                > It's a third party componnent, so i can put this behavior there, but
                > how can a component change the way VB.NET displays the debug
                > information??
                >
                > Peter
                >[/color]


                Comment

                • Peter van der Veen

                  #9
                  Re: Differences between debugging 2 different projects??? Help

                  Don't know

                  Only the component on the form is enough.


                  On Tue, 27 Jul 2004 13:40:14 +0200, "Cor Ligthert"
                  <notfirstname@p lanet.nl> wrote:
                  [color=blue]
                  >Maybe because there is that try and catch in?
                  >
                  >Cor
                  >[color=green]
                  >>
                  >> I deleted one for one the components on the form and tested.
                  >> When i deleted a specific one the bedug info got normal.
                  >> I added the form again and only deleted that component and it was
                  >> fine.
                  >>
                  >> It's a third party componnent, so i can put this behavior there, but
                  >> how can a component change the way VB.NET displays the debug
                  >> information??
                  >>
                  >> Peter
                  >>[/color]
                  >[/color]

                  Comment

                  Working...