THE TOPIC SHOULD HAVE BEEN CALLED:
"How does shadowFunction work for member functions?"
I get this error:
Id: shadowFunction
CWE: 398
Shadow variable
The error is at the line where I close the TCP port during clean up by calling the member function Tcp_MonitorPort():
// The destructorCWndHomeScreen::~CWndHomeScreen(){ENTER_FUNCTION_DEBUG_LOG_TO_MEMtry{CHECK_MEM_LEAKS// Free the resourcesTcp_MonitorPort(false,false);PostMessage_Show(m_tabInfo.hWndLauncher,WMU_FINGERPRINT_REMOVE_CLIENT,NULL,LPARAM(m_hWnd));WaitForSingleObject(m_hInitMembersThread,5000);SAFE_CLOSE_HANDLE(m_hInitMembersThread);SAFE_CLOSE_HANDLE(m_hSubModuleThreadHandle);SAFE_DELETE_OBJECT(m_hFontTile);}catch(...){OnException(m_pWstrDebugLog,__FILE__,__LINE__,__FUNCSIG__,__TIMESTAMP__,nullptr);}}
I don't understand what a 'shadow function' is. What am I doing wrong here?
Last edit: Sander Bouwhuis 2024-07-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
THE TOPIC SHOULD HAVE BEEN CALLED:
"How does shadowFunction work for member functions?"
I get this error:
Id: shadowFunction
CWE: 398
Shadow variable
The error is at the line where I close the TCP port during clean up by calling the member function Tcp_MonitorPort():
I don't understand what a 'shadow function' is. What am I doing wrong here?
Last edit: Sander Bouwhuis 2024-07-22