gabr42 / gabr42/OmniThreadLibrary

Memory Leak When Terminate(0) a Runing Thread

Open
#197 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Pascal
Stars
513
Forks
147
PR merge metrics
No merged PRs in 30d

Description

The sample app_22_TerminationTest also has this problem, when debugging in the _TOTPWorkItem.TerminateTask_ the RefCount of _owiTask_ is 4, even fix this,release owiTask also has _TOmniEnvironment_ is`nt release.
[MemoryManager_EventLog.txt](https://github.com/gabr42/OmniThreadLibrary/files/15282846/MemoryManager_EventLog.txt)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the sample app_22_TerminationTest and inspect _TOTPWorkItem.TerminateTask_ while reproducing Terminate(0). Use MemoryManager_EventLog.txt to trace the remaining references to _owiTask_ and _TOmniEnvironment_; done means the termination path releases them without a memory leak.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.