Noah;
Explore posts from serversMemory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
Description:
When running the speech recognition using
Microsoft.Speech.Recognition
, there appears to be a memory leak issue. The recognition engine constantly grows in memory during execution, even though it is disposed of correctly. The problem is specifically observed in the following code block:
Context:
- The recognition engine grows in memory while it runs in a separate thread.
- Disposing of the engine at the end of the execution does not resolve the issue.
- The memory growth is evident even with correct disposal practices.
Additional Information:
- The issue happens withMicrosoft.Speech.Recognition
and is also observed in System.Speech.Recognition
.
- The code is part of a background service and runs continuously.
Code Snippet for Reference:
22 replies