[vtkusers] RenderWindow New Delete New X Error
Kevin H. Hobbs
hobbsk at ohiou.edu
Tue Apr 22 15:06:37 EDT 2008
In an application I'm trying to write I want a render window to pop up
every once in a while when there's something to render.
I put the rendering in a function where all of the rendering instances
are created and deleted.
I got X errors.
Should the minimum example code below just flash empty windows forever
or should it produce errors?
This is gargon on the dashboard.
VTK from CVS
Mesa from git
Fedora 8
x86_64
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#define WSIZE 300
int main( int argc, char * argv[] )
{
while (1)
{
// Render Window
vtkRenderWindow * render_window = vtkRenderWindow::New();
render_window->SetSize( WSIZE, WSIZE );
render_window->Render();
render_window->Delete();
}
return 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080422/c05b0924/attachment.pgp>
More information about the vtkusers
mailing list