@sierdzio said in How does MQL TreeView release its resource?: I have a workaround: store the data and delete it at the next refresh event. In order to have more control, my final choice is to delete it manually instead of using auto pointer. But anyways, thanks for your suggestion. Kevin