Results 1 to 6 of 6

Thread: help with my VC# editor

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    help with my VC# editor

    hi guys! my VC# editor is performing strange lately becuase when i try to compile/run my code, say for example, a code that will display "message1" it works but when I stop it and modify the code to display another message say "message2" and try to compile/run it again the one it compile is the previous code, the one with "message1" and not the modified code the one will display "message2". I've tried to put breakpoint to the EventHandler of the button that will display the message but it says "The Breakpoint will not currently be hit. The source code is different from the original version." can anybody please will me with this.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help with my VC# editor

    Are you sure that you're not compiling a Release build and debugging with an older Debug build?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: help with my VC# editor

    sorry but i dont know how to check it. Can you help on how to check if im not compiling a Release Build and debugging an older Debug Build? by the way, when i try to run my application i use F5 key.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help with my VC# editor

    Hmmm... I don't think it's that because that would compile a new Debug build anyway, even if your current configuration was Release.

    It could be that you have a compilation error in your code. By default, if your code won't compile when you try to start debugging it will tell you there's an error and ask if you want to debug with the old build instead. If you have checked the box to not show that message again and then proceeded to debug at any stage then I think it will run an old build without asking in future.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: help with my VC# editor

    hmmm. I think i have not checked the box to not show the message again becuase i try to modify my code for it to have an error and run it, the Warning Box still appears saying
    There were build errors. Would you like to continue and run the last successful build?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help with my VC# editor

    It's got me stumped then.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width