little issue in plugin API
Posted: Wed Jun 21, 2006 4:27 am
Scott,
I believe I found a little problem. My understanding is as follows: using the method GetDeviceFromDescription a new CDevice instance will be created. This class is initialized passing the value for m_szDeviceName from pHB_GetDeviceInfoFromDescription. So far ok. But the m_szDeviceDescription will be initialized with the value originally passed by GetDeviceFromDescription. This could be a temporary memory. Instead of this, the szDeviceDescription should be initialized with a persistent value gathered from the server or it should get new own memory.
Can you confirm this?
peter
I believe I found a little problem. My understanding is as follows: using the method GetDeviceFromDescription a new CDevice instance will be created. This class is initialized passing the value for m_szDeviceName from pHB_GetDeviceInfoFromDescription. So far ok. But the m_szDeviceDescription will be initialized with the value originally passed by GetDeviceFromDescription. This could be a temporary memory. Instead of this, the szDeviceDescription should be initialized with a persistent value gathered from the server or it should get new own memory.
Can you confirm this?
peter