WG: [vtkusers] class vtkImageImport, strange problem??

Chunyan Jiang jiang at TI.FhG.DE
Mon Dec 16 10:47:46 EST 2002


The problem is solved tentatively. Because I copied all vtk .dll to the
debug folder. Then it works. However, I don't know why it is. And I won't
include so many .dll files in the debug folder. Could some one explain to
me?

-----Ursprüngliche Nachricht-----
Von: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]Im Auftrag von Chunyan Jiang
Gesendet: Montag, 16. Dezember 2002 15:21
An: VTK-User
Betreff: [vtkusers] class vtkImageImport, strange problem??


I'm sorry to send the same email again. In the last mail, I attached one
picture. Maybe it is too big. And it can not pass the vtk's list moderator.
This time I attach the smaller picture.


Dear vtk users,
I meet one strange problem of class vtkImageImport. I use this class in two
applications as the same method. However, it works in one application, in
the other, it doesn't work. The error comes from the function
SetWholeExtent. Then I debug these two application and find that there are
some parameters are not same as initialization. They are compared in the
following:

Available case:
---------------------------------------------
	vtkImageImport *importer = vtkImageImport::New();

importer->SetWholeExtent(0,dimensions[0]-1,0,dimensions[1]-1,0,dimensions[2]
-1);

the parameters after "New()" are:
SaveUserArray:0
NumberOfScalarComponents:1
DataScalarType:4
BufferPointerCallback:0x00000000
---------------------------------------------

Unavailable case:
---------------------------------------------
	vtkImageImport *importer = vtkImageImport::New();

importer->SetWholeExtent(0,dimensions[0]-1,0,dimensions[1]-1,0,dimensions[2]
-1);

the parameters after "New()" are:
SaveUserArray:1
NumberOfScalarComponents:4
DataScalarType:0
BufferPointerCallback:0xbaadf00d
--------------------------------------------

The other parameters are same. And the error message is in the attachment.

How can I solve this problem? It is urgent!!
Thank you very much!


Chunyan

***********************************************************************
Chunyan Jiang, Dipl.-Inform.,
Institut for Telematic
Bahnhofstrasse 30-32, D-54292 Trier, Germany
Phone: (+49) (0)651-97551-34
Fax: (+49) (0)651-97551-12
***********************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ErrorMessage.jpg
Type: image/jpeg
Size: 23215 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021216/27c0edc9/attachment.jpg>


More information about the vtkusers mailing list