<!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.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi vtk users!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I use vtk with Java and I use a 
vtkPanel.</FONT></DIV>
<DIV><FONT face=Arial size=2>In the renderer of&nbsp;this vtkPanel I insert a 
surface with a texture.</FONT></DIV>
<DIV><FONT face=Arial size=2>In an other thread, I update this texture every 
time.</FONT></DIV>
<DIV><FONT face=Arial size=2>This program run correctly with a good frame rate 
</FONT></DIV>
<DIV><FONT face=Arial size=2>but some minutes ago, the surface disappear of the 
view.</FONT></DIV>
<DIV><FONT face=Arial size=2>I notice an increase of the memory use by the 
program </FONT></DIV>
<DIV><FONT face=Arial size=2>when the function "Render" of the vtkPanel are 
call.</FONT></DIV>
<DIV><FONT face=Arial size=2>That is the problem?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I don't understand what occurs and why the texture 
disappear?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is the source of my Thread :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>public class UpdateImage extends Thread 
<BR>{<BR>&nbsp; <BR>&nbsp; private view3D view; //view3D extends 
vtkPanel<BR>&nbsp; public boolean running=true;<BR>&nbsp; public boolean 
visu=true;<BR>&nbsp; <BR>&nbsp; public UpdateImage(View3D _view)<BR>&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp; view = _view;<BR>&nbsp; }<BR>&nbsp; <BR>&nbsp; public 
void run()<BR>&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
try<BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
while(running)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int isurf = 0; 
isurf&lt;vue.getSurfaces().size(); 
isurf++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
((Surface)view.getSurfaces().get(isurf)).updateTabImage();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
SwingUtilities.invokeAndWait(new 
Runnable()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public 
void run() </FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
view.Render();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT 
face=Arial size=2>}<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; catch 
(Exception e){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.out.println("Exception="+e);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp; 
}<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks for your help!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Antoine</FONT></DIV></BODY></HTML>