Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

IAPIToolUIData::SetUserData

Oleg
Advocate
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 ?
2 REPLIES 2

Andras Babos
Graphisoft Alumni
Graphisoft Alumni
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); 


It will be corrected in the next DevKit.

Thanks:
Andras.

Oleg
Advocate
Andras wrote:
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); 
Thank you Andras. You have confirmed my guesses. Actually I used BMKillHandle in my code, but asked as I had some doubts.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!