vtkImageReader gives an access violation

Bettina von Mutius mutius at rrz.uni-koeln.de
Tue Apr 11 04:08:50 EDT 2000


Hi folks,
for my PhD I have to manipulate CT data. I wanted to use vtkImageReader to
read the raw CT data. Every time I try to call this routine, I get an
access violation on memory...
I´m developing under Windows NT 4.0 Sp6 with Visual C 6.0 using MDI but not
MFC.

#include "vtkCTein.h"

CMyCTEin::CMyCTEin(HWND hwndClient) {

	this->reader=vtkImageReader::New();
	//this->reader->SetDataByteOrderToLittleEndian();
	//this->reader->SetDataExtent (0,255,0,255,1,93);
	//this->reader->SetFilePattern("%s.%3d");
	//this->reader->SetFilePrefix ("D:\\DISS_CODE\\Daten\\Cor2");
	//this->reader->SetDataMask (0x7fff);
	//this->reader->Update();


	//this->gradient->SetInput(reader->GetOutput());
	//this->gradient->SetDimensionality(3);

	//this->viewer->SetInput(gradient->GetOutput());
	//this->viewer->SetZSlice(22);
	//this->viewer->SetColorWindow(400);
	//this->viewer->SetColorLevel(0);
}

CMyCTEin::~CMyCTEin() {
	reader->Delete();
	//gradient->Delete();
	//viewer->Delete();
}

As yopu can see i only try to use the new and the delete funktion for
vtkImageReader.

Any Idea what is happening?

Greeting from Cologne, bettina
________________________________________________________
Dipl-Phys. Bettina von Mutius                          
Regionales Rechenzentrum der Universitaet zu Koeln
Robert-Koch-Str. 10
D-50931 Koeln
Tel.: 0221-478-5578
Fax.: 0221-478-5590
EMail : mutius at rrz.uni-koeln.de
________________________________________________________
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list