[gme-users] How to destroy of the finding double objects

Lucy_efrizoni lusi_dl at yahoo.co.id
Tue Sep 13 08:59:20 CDT 2011


Dear All,
 
I am trying to make a scenario of deleting a newly-created object. If found 
double name of the objects then only able to show up a warning message as 
perform consistency checking but unable to destroy it. Does anyone know how to 
destroy of the finding double objects?
 
Advice & an example coding for destroying object is very appreciated,
Thank you in advance
\Lucy
 
void Component::objectEventPerformed( Object& object, unsigned long event, 
VARIANT v )
{

     try{
            if(event & OBJEVENT_CREATED){
                 object->destroy();
            }
     }catch ( BON::Exception e ){
             AfxMessageBox ( "BON::Exception: " + CString( 
e.getErrorMessage().c_str() ) ) ;
     }catch ( MON::Exception e ){
             AfxMessageBox ( "MON::Exception: " + CString( 
e.getErrorMessage().c_str() ) ) ;
     }catch ( ... ){
             AfxMessageBox ( "Exception: Unknown" ) ;
     }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20110913/23053eb8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 9536 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20110913/23053eb8/attachment.jpe 


More information about the gme-users mailing list