Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8221027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:45:25+00:00 2026-06-07T13:45:25+00:00

I am maintaining some VB code that does not seem to stop on a

  • 0

I am maintaining some VB code that does not seem to stop on a stop statement.

When I run the program under certain conditions, this code throws the System.Exception(“Timed out”) from the last line of code.

But if you go thru the code line-by-line, it seems like it can never hit this statement. First it tries to Return MyBase.Save. If it can’t, then it will hits the stop statement and stop.

But it seems like the program is just skipping the stop statement.

How can I debug this code? Specifically, how does it skip the stop statement to get to the statement Throw New System.Exception(“Timed out”)

Public Overrides Function Save() As Uber

    If IsDeleted AndAlso Not CanDeleteObject() Then
        Throw New System.Security.SecurityException("User is not authorized to remove a Uber")
    ElseIf IsNew AndAlso Not CanAddObject() Then
        Throw New System.Security.SecurityException("User is not authorized to add a Uber")
    ElseIf Not IsNew AndAlso Not CanEditObject() Then
        Throw New System.Security.SecurityException("User is not authorized to update a Uber")
    End If

    Try
        Return MyBase.Save
    Catch ex As Exception

        Stop   //why is the code not stopping here?
    End Try

    Throw New System.Exception("Timed out")  //this line executes, but I don't see how the code gets there

End Function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:45:28+00:00Added an answer on June 7, 2026 at 1:45 pm

    I think Stop only creates a breakpoint for debugging.

    The execution of the code will continue.

    I think an exception is being thrown in Return MyBase.Save. It’s being caught in the Catch block but it is effectively being ignored by that block because ex is never used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am maintaining some code which looks something like this. It's a Windows service
I'm maintaining some code that has far too many document.write instances. For example, the
While maintaining some code, I discovered that we have an infinite hang-up in a
I am maintaining some code that has a trigger on a table to increment
I'm maintaining some C code that was written by the person who had my
I have some terribly written ASP.NET code that is just not working right (go
I'm maintaining some code that I want to add a chat feature to. I
Looking at some code I'm maintaining in System Verilog I see some signals that
Here's a snippet of code that I saw in some code I'm maintaining. Object
I'm maintaining some code that uses a *= operator in a query to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.