# tibems_Open

Function

## Purpose

Allocate the global memory for the EMS library.

## C Declaration

    void tibems_Open(void);

## COBOL Call

    CALL "tibems_Open"
      RETURNING tibems-Return-Value
    END-CALL.

## Remarks

Applications that do not call `tibems_Open` will work as expected because the EMS internal global data structures are allocated when any public EMS function is called. However, the EMS data structures will not be deallocated until the application calls the `tibems_Close` function or exits.

Existing Windows applications that only call the `tibems_Close` function will work as expected.

Applications that call `tibems_Open` and `tibems_Close` one or more times will allocate and deallocate correctly as long as the close calls match the open calls.

## See Also

`tibems_Close`

Copyright © Cloud Software Group, Inc. All rights reserved.