# Stop

### int Stop()

운영 중인 EZGemPlus 라이브러리의 통신 서비스를 중단하고, 할당되었던 관리되지 않는 리소스(Unmanaged Resources)를 정리합니다.\
특히 C# 환경에서 비관리 코드로 연결했던 핸들러들을 해제하여 메모리 안정성을 확보합니다.

```csharp
int result = m_gem.Stop();

    if (result >= 0)
    {
        Console.WriteLine("EZGemPlus Service Stopped and Resources Freed.");
    }
    else
    {
        Console.WriteLine($"Stop failed. Error Code: {result}");
    }
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/undefined/stop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
