Mathematica > 系统界面与配置 > C/C++ 语言接口 > MathLink C 语言函数 > MLDeinitialize() >
Mathematica > 系统界面与配置 > MathLink API > MathLink C 语言函数 > MLDeinitialize() >

MLDeinitialize()

void MLDeinitialize(MLENV env)
destructs the MathLink environment object.
  • The MathLink environment object stores the global state of MathLink during the execution of a program.
  • MLDeinitialize() must be called before the program exits.
  • MLClose() must be called for all open links before calling MLDeinitialize().
  • An appropriate call to MLDeinitialize() is generated automatically when an external program is created from MathLink templates.
  • MLDeinitialize() is declared in the MathLink header file mathlink.h.
#include "mathlink.h"

int main(int argc, char **argv)
{
    MLENV ep;

    ep = MLInitialize((char *)0);

    ...

    MLDeinitialize(ep);
    return 0;
}
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
格式:   HTML  |  CDF