gabr42 / gabr42/OmniThreadLibrary
Memory Leak When Terminate(0) a Runing Thread
- 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