IAPIToolUIData::SetUserData

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-06-10
12:43 PM
- last edited on
‎2023-08-07
12:02 PM
by
Doreena Deng
‎2005-06-10
12:43 PM
May be anybody knows details about following.
For the reference:
TestSettingsPageObserver::SetUserDataToDefault function in Panels.cpp of the Panel_Test example.
userData.dataHdl handle is not released ( BMKillHandle ) after call of SetUserData.
Is it a bug ( and memory leak ) in this example or the handle really is not required to be released in this case ?
For the reference:
TestSettingsPageObserver::SetUserDataToDefault function in Panels.cpp of the Panel_Test example.
userData.dataHdl handle is not released ( BMKillHandle ) after call of SetUserData.
Is it a bug ( and memory leak ) in this example or the handle really is not required to be released in this case ?
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-06-15 05:44 PM
‎2005-06-15
05:44 PM
You're right Oleg, that's a bug.
The last lines of that method should look like this:
It will be corrected in the next DevKit.
Thanks:
Andras.
The last lines of that method should look like this:
tabPage->uiData->SetUserData (&userData); BMKillHandle (&userData.dataHdl);
It will be corrected in the next DevKit.
Thanks:
Andras.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-06-15 06:21 PM
‎2005-06-15
06:21 PM
Andras wrote:Thank you Andras. You have confirmed my guesses. Actually I used BMKillHandle in my code, but asked as I had some doubts.
You're right Oleg, that's a bug.
The last lines of that method should look like this:tabPage->uiData->SetUserData (&userData); BMKillHandle (&userData.dataHdl);