[vtkusers] RenderWindow New Delete New X Error
Kerry Loux
louxkr at gmail.com
Wed Apr 23 08:54:43 EDT 2008
Kevin,
I can compile and run your example error-free under MSW. Can you determine
which line is causing the error?
-Kerry
On Tue, Apr 22, 2008 at 3:06 PM, Kevin H. Hobbs <hobbsk at ohiou.edu> wrote:
> 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;
> }
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080423/e4aaa5d2/attachment.htm>
More information about the vtkusers
mailing list