-
Notifications
You must be signed in to change notification settings - Fork 227
Labels
bugcFE-TBLTable servicesTable servicesdocsThis change only affects documentation.This change only affects documentation.
Milestone
Description
Describe the bug
Should an app call CFE_TBL_Unregister?
On CFE_ES_ExitApp I get:
1980-012-14:03:21.25234 CFE_TBL:RemoveAccessLink-PutPoolBuf[0] Fail Stat=0xC4000007, Hndl=0x56709730, Buf=0x00000000
1980-012-14:03:21.25236 CFE_TBL:RemoveAccessLink-PutPoolBuf[0] Fail Stat=0xC4000007, Hndl=0x56709730, Buf=0x00000000
The documentation no longer says anything about it so I'm starting to think it shouldn't be used. The sample_app in the cFS repo also doesn't call CFE_TBL_Unregister either.
The code seems to say we should though:
cFE/fsw/cfe-core/src/inc/cfe_tbl.h
Lines 334 to 339 in 95f34d2
| ** \par Description | |
| ** When an application is being removed from the system, it should | |
| ** unregister those tables that it created. The application should | |
| ** call this function as a part of its cleanup process. The table | |
| ** will be removed from memory once all table addresses referencing | |
| ** it have been released. |
To Reproduce
- Register table
- Unregister table
- Call CFE_ES_ExitApp
Expected behavior
No errors on exit
Code snips
N/A
System observed on:
- Hardware: Laptop
- OS: Linux
- Versions: Versions:cFE 6.7.7.0, OSAL 5.0.6.0, PSP 1.4.4.0
Additional context
N/A
Reporter Info
Philip Cooksey, NASA Ames
Metadata
Metadata
Assignees
Labels
bugcFE-TBLTable servicesTable servicesdocsThis change only affects documentation.This change only affects documentation.