<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff size=2>Hi,
David,</FONT></SPAN></DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff size=2>Thank
you for your hint. I look through my code. There is no such registered
object in my code. </FONT></SPAN></DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff size=2>It is
really strange. Could you tell me if there are some other cases that will cause
my problem?</FONT></SPAN></DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff
size=2>Why is VTK so strict for its objects?</FONT></SPAN></DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff size=2>Thanks
again!</FONT></SPAN></DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890051316-25022004><FONT face=Arial color=#0000ff
size=2>Chunyan Jiang</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> david michell
[mailto:davidmichell@rediffmail.com]<BR><B>Gesendet:</B> Mittwoch, 25. Februar
2004 16:15<BR><B>An:</B> jiang<BR><B>Betreff:</B> Re: AW: [vtkusers] Error
message when the application is ended<BR><BR></FONT></DIV>
<P>assume you have something like this<BR>case 1)<BR><BR>vtkRenderer
*rn=vtkRenderer::New();<BR>vtkRenderer *temp;<BR>temp=rn;/// when you do
something like this then you have to register<BR>rn->Register(this);//this
increases ref count of rn by 1<BR><BR>//later when you no longer need temp you
do<BR><BR>temp->Delete();// now ref count of rn is reduced by
one<BR><BR>case2)<BR>the other way is to not register and not
delete<BR><BR>vtkRenderer *rn=vtkRenderer::New();<BR>vtkRenderer
*temp;<BR>temp=rn;<BR>//forget about Register() and Delete(),but this is not a
good way<BR><BR></P><BR><BR><A
href="http://clients.rediff.com/signature/track_sig.asp" target=_blank><IMG
height=74 hspace=0
src="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"
width=496 border=0 NOSEND="1"></A> </BLOCKQUOTE></BODY></HTML>