[Paraview] How can I fix the problem?

David E DeMarle dave.demarle at kitware.com
Wed Feb 25 22:03:01 EST 2009


Sorry, I should have thought before I replied.  Of course you have XML
or else paraview wouldn't know to ask the ProcessModule to try to
create a vtkMyReader.

Check for the inclusion of the vtkObjectFactory and the use of
vtkStandardNewMacro in the .cxx file. Also check that the classes
filename and class name match that in of the class= attribute in the
XML file.


On Wed, Feb 25, 2009 at 9:40 PM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> Have you written the xml configuration file that tells ParaView how to
> call the reader?
>
> On Wed, Feb 25, 2009 at 7:15 PM, Biao She <shebiao at gmail.com> wrote:
>> Hi everyone.
>> I am trying to write a new reader plugin for Paraview. However, I get the
>> following error when I try to use it:
>>
>> ERROR: In
>> /usr/scratch/bshe/Paraview/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx,
>> line 1079
>> vtkProcessModule (0x8c24658): Cannot create object of type "vtkMyReader".
>> while processing
>> Message 0 = New
>>   Argument 0 = string_value {vtkMyReader}
>>   Argument 1 = id_value {84}
>>
>>
>>
>> ERROR: In
>> /usr/scratch/bshe/Paraview/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx,
>> line 1080
>> vtkProcessModule (0x8c24658): Aborting execution for debugging purposes.
>>
>> It seems to be a vtkMyReader construction problem. (Please correct me if
>> not)
>> My vtkMyReader is derived from vtkImageReader2, and it has a public static
>> method for construction in .h file - static vtkDICOMImageReaderCopy *New().
>> I am wondering if I have to write some code for this method in the
>> vtkMyReader implementation (.cxx file) to fix the error?
>>
>> Thanks
>>
>> Biao
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
>
>
> --
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>



-- 
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


More information about the ParaView mailing list