Ron
October 13th, 2002, 01:55 PM
Currently Girder always passes the same pointer to the plugin (one for the user node selects and one for the events). If the user selects a new node on the treeview, girder copies the command structure to the plugin command structure and notifies the plugin that it has been updated. All the old PCHARs and PVOIDs are now invalid. Re-read the structure to find the new pchars.
If you call set_command you must pass the pointer that Girder gave you in command_changed.
Does this make it a little bit clearer ?
note: if you want to modify the command structure make sure you are in a critical section.
If you call set_command you must pass the pointer that Girder gave you in command_changed.
Does this make it a little bit clearer ?
note: if you want to modify the command structure make sure you are in a critical section.