<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;color:#00007f;"><table width="100%" cellspacing="0" cellpadding="0" align="center"><tbody><tr><td width="100%" height="100%" bgcolor="#ffffff" valign="top"><table width="100%" height="100%" style="table-layout:fixed;" cellspacing="0" cellpadding="0" align="center"><tbody><tr><td width="170" align="left" valign="bottom"><img src="cid:1315922026163@dclient.mail.yahoo.com" width="160" height="140" alt="" border="0"></td><td valign="top" style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><table width="100%" style="white-space:normal;" cellspacing="0" cellpadding="0"><tbody><tr><td height="10"> </td></tr><tr><td><font face="arial, helvetica, sans-serif" size="2" color="#00007f" style="font-family:arial, helvetica, sans-serif;font-size:12;color:#00007f;"><div
style="text-align:undefined;"><DIV></DIV>
<DIV>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><FONT color=#000000 size=2 face="arial, helvetica, sans-serif">Dear All,</FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT color=#000000 size=2 face="arial, helvetica, sans-serif"> </FONT></o:p></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><FONT color=#000000 size=2 face="arial, helvetica, sans-serif">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?</FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><o:p><FONT color=#000000 size=2 face="arial, helvetica, sans-serif"> </FONT></o:p></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><FONT color=#000000 size=2 face="arial, helvetica, sans-serif">Advice & an example coding for destroying object is very appreciated,</FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><FONT color=#000000 size=2 face="arial, helvetica, sans-serif">Thank you in advance</FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><FONT color=#000000 size=2 face="arial, helvetica, sans-serif">\Lucy</FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><o:p><FONT color=#000000 size=2 face="arial, helvetica, sans-serif"> </FONT></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><FONT color=#000000 size=2 face="arial, helvetica, sans-serif">void Component::objectEventPerformed( Object& object, unsigned long event, VARIANT v )<BR>{<BR><BR> try{<BR> if(event & OBJEVENT_CREATED){<BR> object->destroy();<BR> }<BR> }catch ( BON::Exception e ){<BR> AfxMessageBox ( "BON::Exception: " + CString( e.getErrorMessage().c_str() ) ) ;<BR> }catch ( MON::Exception e ){<BR> AfxMessageBox (
"MON::Exception: " + CString( e.getErrorMessage().c_str() ) ) ;<BR> }catch ( ... ){<BR> AfxMessageBox ( "Exception: Unknown" ) ;<BR> }<BR>}</FONT></SPAN></P></DIV></div></font></td></tr><tr><td height="100"> </td></tr></tbody></table></td><td width="10"> </td></tr></tbody></table></td></tr></tbody></table></div></body></html>