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

J Mst gave_edgar at hotmail.com
Wed Mar 26 09:57:23 EST 2003


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


--------------<SNIP>--------------------------------------------
	void VTKImageExportBase::UpdateInformationCallbackFunction(void* userData)
	{
	  static_cast<VTKImageExportBase*>(userData)->
----->	    UpdateInformationCallback();
	}

	int VTKImageExportBase::PipelineModifiedCallbackFunction(void* userData)
	{
	  return static_cast<VTKImageExportBase*>(userData)->
	    PipelineModifiedCallback();

--------------<SNIP>--------------------------------------------

_________________________________________________________________
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl




More information about the vtkusers mailing list