[Paraview] Wrapper Error in 2.6.1
Kent Eschenberg
eschenbe at psc.edu
Mon Jun 4 16:27:56 EDT 2007
I'm trying to create a new reader but it fails during execution:
vtkMyReader, could not find requested method: "GetTimeStepRange"
or the method was called with incorrect arguments.
while processing
Message 0 = Invoke
Argument 0 = id_value {486}
Argument 1 = string_value {GetTimeStepRange}
But this method is defined in the public section of the reader's class:
int *GetTimeStepRange( void );
void GetTimeStepRange( int &r0, int &r1 );
void GetTimeStepRange( int r[2] );
File <binary>/Servers/Filters/vtkMyReaderClientServer.cxx shows that only one
of the methods was wrapped:
if (!strcmp("GetTimeStepRange",method) && msg.GetNumberOfArguments(0) == 3) {
int temp0[2];
if(msg.GetArgument(0, 2, temp0, 2) {
op->GetTimeStepRange(temp0);
return 1;
}
}
I noticed that the first of the above 3 methods was wrapped in another reader
although all 3 were defined. What's going on? Does the wrapping only work when
I use the macros in vtkSetGet.h?
Using gcc 4.1.1 on Fedora Core 5.
TIA!
Kent
Pittsburgh Supercomputing Center
More information about the ParaView
mailing list