[vtkusers] SetSizeInternal in vtkJavaAwt.h

Jeff Lee jeff at cdnorthamerica.com
Fri Mar 1 07:00:57 EST 2002


Hi Lichan,
This usually happens when you try to access (i.e. set the size) of the 
render window before RenderCreate() has been called.  A piece of code 
which demonstrates the problem would be helpful.
-Jeff

Lichan.Hong at parc.com wrote:

>I am writing my application in Java, calling VTK 4.0 through JNI. 
>When I run my application, I keep getting the message "Error
>locking surface" and nothing appears on my window. 
>
>I found out that this message comes from "SetSizeInternal()" in 
>Common/vtkJavaAwt.h. The following is a piece of the code:
>		lock = ds->Lock(ds);
>  		if((lock & JAWT_LOCK_ERROR) != 0) 
>    		{
>   			printf("Error locking surface\n");
>    			awt.FreeDrawingSurface(ds);
>    			return;
>    		}
>For some reason that I don't understand, locking the 
>drawing surface fails, leading to the error message. 
>
>Any helps would be greatly appreciated.
>
>
> 
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>





More information about the vtkusers mailing list