Terminate
[ Windows Only ] Forces the termination of the display process.
Syntax
void Terminate();
Parameters
None
Returns
None
Required Headers
CDisplay.h
Namespace
arc
Throws
None
Remarks
This method is for Windows only.
Example
        // This code demonstrates how to launch DS9 and display
        // a previously taken 1200x1024 pixel CCD image that
        // currently resides in the kernel image buffer 
        // ( CController::mapFd ). Terminate is called if an
        // error occurs.

        #include <iostream>
        #include "CController.h"
        #include "CDisplay.h"

        using namespace std;
        using namespace arc;

        int main()
        {
            CController cController;
            CDisplay cDisplay;

            try {
                cDisplay.Launch();

                // .... previously exposed image that resides
                // .... in kernel buffer at CController.mapFd

                cDisplay.Clear();
                cDisplay.Show( cController.mapFd, 1024, 1200 );
            }
            catch ( std::exception &e )
            {
                cDisplay.Terminate();
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.