fail to exit C++ Builder

Posted on 2004-11-24
Last Modified: 2013-11-17
Hi Experts,

   I want to exit C++ Builder, however I was asked :
 Debug session in progress. Terminate ?

   I clicked OK and then got : " Unable to terminate process" ...

  so how do I  exit the program properly ?

many thanks !
Question by:meow00
    LVL 4

    Expert Comment

    You are in the middle of riunning your application.  You need to terminate the debug session by presst Ctrl F2 or selecting Run | Program Reset from the C++ Builder main menu.
    LVL 4

    Expert Comment

    ... or you could just let your application run through until it terminates normally of course.
    LVL 1

    Author Comment

    I tried Project|Program Reset and Ctrl F2, but I got
    " Unable to terminate process" as well ... :-(

    is there any other way to do this ?
    LVL 4

    Accepted Solution

    Is the error occurring when you select Program | Reset and Ctrl F2.  Or is it still occurring when you are trying to Close CBuilder?

    If you select the Run option from the menu bar are the Step Over and Trace Into options enabled or disabled.  Also, is the Program Reset option enabled or disabled?  This will at least tell you if you're application is still running in a debug state or not.

    I have seen this happen in C++Builder if you have manually terminated your application using the Windows Task Manager, rather than the Program | Reset option.  If this is the case, you may also need to manually terminate C++ Builder as well as it is trying to terminate a debug session that you have already manually terminated.  In future, use Ctrl F2 or Program | Reset to terminate your debug session (if this is actually what you have done)
    LVL 13

    Expert Comment

    I had this happen when I closed the application but threads of it where still running.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now