Hi Toni,
I've tried to reproduce your problem in my computer. I'm sorry but I
cannot reproduce it. However, it's easy to debug what is happening if you can
debug two points in the code:
1. void Core::DynDataTransferBase::RegisterDataTransfer( const
std::string &name, DynDataTransferBase::Pointer p ): This function registers a
new data transfer, using the name as the key of the container.
2. void Core::DynProcessor::Update(): This is the function that is
called when the user presses Apply button. You can see that the first line
creates a new data transfer based on the configured module type as a key of the
container. If the parameters is the same name that you registered in the step
number 1, it should create an instance of DynDataTransferCLP:
dataTransfer = DynDataTransferBase::NewDataTransfer(
m_ModuleExecution->GetModuleType() );
However, if you cannot find the problem, you can send me a patch and I
will debug it in my computer.
Thanks,
Xavi
-----Original Message-----
From: antoni artigues [mailto:[email protected]]
Sent: martes, 10 de mayo de 2011 15:23
To: [email protected]
Subject: [Gimias-developers] DataTransfer error
Hello
I have added this datatransfer to the UnicoreModule:
dynModuleExecution::RegisterImpl( "UnicoreModule", baseFactory );
Core::DynDataTransferBase::RegisterDataTransfer( "UnicoreModule",
Core::DynDataTransferBase::Pointer( Core::DynDataTransferCLP::New()));
Also, I have modified the "coreDynProcessingWidget.cpp"(only for test
purpouses) with:
--------------------------------------------
void
Core::Widgets::DynProcessingWidget::OnRunAsCommandLine( wxCommandEvent& event )
{
if ( event.GetInt( ) )
{
m_Processor->GetModuleExecution( )->SetForceExecutionMode( "UnicoreModule" );
}
else
{
m_Processor->GetModuleExecution( )->SetForceExecutionMode( "UnknownModule" );
}
}
--------------------------------------------
And now, I'm trying to launch the "gaussian blur filter" with the "Run as
executable" checked, but I obtain this error:"Data Trasnfer not registered for
this name". I attach a screen capture.
Do I have to change more source files?
Thanks In Advance
Regards
Antoni Artigues
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers