<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2><FONT face=ÐÂËÎÌå>Hi, <BR>I meet a strange problem about
annotion.Runing my program is ok.But when i close the renwin,the error message
is "user breakpoint called from code at 0x7c921230". <BR>my code as foolows:
</FONT>
<P>vtkTextProperty *textproperty=vtkTextProperty::New();
<BR>
textproperty->SetFontSize(50);
<BR>
textproperty->SetColor(1,1,1);
<BR>
textproperty->AntiAliasingOn();
<P>vtkTextMapper *textMapper=vtkTextMapper::New();
<BR>
textMapper->SetInput("This is\n multi-line\n text output\n ");
<BR>
textMapper->SetTextProperty(textproperty); <BR>
<P>vtkTextActor *textActor=vtkTextActor::New();
<BR>
textActor->SetMapper(textMapper);
<BR>
textActor->ScaledTextOn();
<BR> textActor->SetTextProperty(textproperty);
<BR> textActor->GetPositionCoordinate()->SetCoordinateSystemToNormalizedDispla
y();
<BR> textActor->GetPositionCoordinate()->SetValue(0.5,0.5);
<BR>
<P> vtkRenderer *render=vtkRenderer::New();
<BR>
<BR>
<P> vtkRenderWindow *renwin=vtkRenderWindow::New();
<BR>
renwin->AddRenderer(render); <BR>
renwin->SetSize(800,600);
<BR> <BR>
vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New();
<BR> iren->SetRenderWindow(renwin); <BR>
<P>
render->AddActor(textActor);
<BR> <BR>
renwin->Render(); <BR>
render->Render(); <BR> iren->Start();
<P>
<BR> textMapper->Delete();
<BR> textproperty->Delete();
<BR> textActor->Delete();
<BR> render->Delete();
<BR> renwin->Delete();
<BR> iren->Delete();
<P>} <BR>Anyone could help me? <BR></P></FONT></DIV></BODY></HTML>