[vtkusers] Render window [error on close/render]

Davide Bianconi bianconi.davide at gmail.com
Wed Mar 16 07:02:15 EST 2005


Hallo, I have your same problem…  Have you found the solution ?
Many thanks.

Davide Bianconi 
Bologna University - Italy

---------------------------------------------------------------------------------------------------------------
Hi all,

I've a question about the renderwindow. I'm using ITK and VTK to show an 
image. The image is first being prcessed with ITK and then it'll be shown 
with VTK. I tried both the imageviewer and the renderwindow (with actors). 
I'm all doing this in an VC++ MFC environment. I desinged it that the window 
will be rendered when the user pushes the render-button.

When I use the ordinary "vtkImageViewer", my program will compile just fine 
but when I run the program and hit the render window, it gives me an error. 
I can see the render window but trough the error, the program is stuck. The 
same think happens when I use a renderwindow with the use of actors/mappers 
(same principle).

When I use a "vtkRenderWindowInteractor", the render window will show just. 
In this case I added the command: renderwindowinteractor->Start().

The problem seems solved, but it isn't. When I want to close the window, 
it'll give me the same error as before. So I suspect it has something to do 
with the return value or something. For clarity, this error occurs when I'm 
programming in a MFC. The error/break can be seen below.(the arrow indicates 
the place of the break)

I couldn't find the problem as I looked through the mailing-list so.. Does 
anyone here got a clue how to fix the problem?


many thanks in advance.

Joris ( newbie :) )
Medical Spectrum
Enschede, The Netherlands



More information about the vtkusers mailing list