[gme-users] How to know which object is destroyed
Kevin Smyth
ksmyth at isis.vanderbilt.edu
Wed Apr 4 09:11:17 CDT 2012
Hi Jae,
OBJEVENT_DESTROYED does have the obj parameter set, but since it is deleted, you cannot read the GUID. Try the OBJEVENT_PRE_DESTROYED event instead.
Also, be sure you are checking the return value of the COM calls, as the GetGuid method will return a FAILED HRESULT if called after the object is deleted (i.e. E_MGA_OBJECT_DELETED)
Kevin
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Jae Young Bang
Sent: Tuesday, April 03, 2012 8:22 PM
To: gme-users
Subject: [gme-users] How to know which object is destroyed
Hello.
I am wondering if there is any way to figure out which object is destroyed within objectEventPerformed() of a plugin.
For any other events, the object parameter of objectEventPerformed() indicates to which object the event was performed, but for OBJEVENT_DESTROYED, the object parameter seems empty. In detail, I would like to get the GUID of the object that is being destroyed, but I can't get it from the object parameter ...
Thank you!
~Jae
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20120404/d113d8b6/attachment.html
More information about the gme-users
mailing list