There exists a bug that can cause the program to crash when attempting to use the "Call Chain" view on 64bit systems.
The "selected" pointer in an ht_treeview object is cast to a long and treated as an integer in ht_treeview::getdata(). This pointer is then cast back to a pointer in ht_aviewer::showCallChain(). This can cause the program to crash on systems where the size of the pointer is larger than 32bit.
This patch causes the data serialization of the ht_treeview to use the ht_treeview_data in a similar way to how the ht_listbox uses a structure to serialize its data.