Hi,
We try to use the marshalling on our program but it seems that there is a problem.
When we use the following code we have a segmentation fault when we call writeProperties:
//this->getProvider<RTT::Marshalling>("marshalling")->writeProperties("PropertyFile.cpf"); boost::shared_ptr0 Marshalling = this->getProvider<RTT::Marshalling>("marshalling"); if (Marshalling) { bool result = Marshalling->writeProperties("Essai.cpf"); }Whe have also tried to execute our exercice hello-2-properties and we have the same error. This exercise works two weeks ago.
The problem come from our program or from "writeProperty" ?
Thanks.
RTT 2.0 beta 3: Marshalling
On Monday 12 July 2010 08:46:58 pierre [..] ... wrote:
> Hi,
>
> We try to use the marshalling on our program but it seems that there is a
> problem.
>
> When we use the following code we have a segmentation fault when we call
> writeProperties:
>
>
> //this->getProvider<RTT::Marshalling>("marshalling")->writeProperties("Pro
> pertyFile.cpf"); boost::shared_ptr<Marshalling> Marshalling =
> this->getProvider<RTT::Marshalling>("marshalling"); if (Marshalling)
> {
> bool result = Marshalling->writeProperties("Essai.cpf");
> }
>
> Whe have also tried to execute our exercice hello-2-properties and we have
> the same error. This exercise works two weeks ago.
>
> The problem come from our program or from "writeProperty" ?
I have pushed the fix to the 2.0-mainline, together with a whole bunch of
changes in order to prepare the beta4 release. I played with the exercises
and with the very latest rtt/ocl revisions, it seems to work all right now. I
also pushed updates to the rtt-exercises to github, including modifications to
the makefile (won't merge with yours since mine assumes OCL+RTT are in the same
place).
The current mainline should compile somewhat faster, especially on 'low-mem'
systems. More about that later...
Peter
RTT 2.0 beta 3: Marshalling
On Monday 12 July 2010 08:46:58 pierre [..] ... wrote:
> Hi,
>
> We try to use the marshalling on our program but it seems that there is a
> problem.
>
> When we use the following code we have a segmentation fault when we call
> writeProperties:
>
>
> //this->getProvider<RTT::Marshalling>("marshalling")->writeProperties("Pro
> pertyFile.cpf"); boost::shared_ptr<Marshalling> Marshalling =
> this->getProvider<RTT::Marshalling>("marshalling"); if (Marshalling)
> {
> bool result = Marshalling->writeProperties("Essai.cpf");
> }
>
> Whe have also tried to execute our exercice hello-2-properties and we have
> the same error. This exercise works two weeks ago.
>
> The problem come from our program or from "writeProperty" ?
I can reproduce this and I'm onto it right now. Hope to fix it soon.
Peter
RTT 2.0 beta 3: Marshalling
Hi,
We try to use the marshalling on our program but it seems that there is a problem.
When we use the following code we have a segmentation fault when we call writeProperties:
//this->getProvider<RTT::Marshalling>("marshalling")->writeProperties("PropertyFile.cpf");
boost::shared_ptr<Marshalling> Marshalling = this->getProvider<RTT::Marshalling>("marshalling");
if (Marshalling)
{
bool result = Marshalling->writeProperties("Essai.cpf");
}
Whe have also tried to execute our exercice hello-2-properties and we have the same error.
This exercise works two weeks ago.
The problem come from our program or from "writeProperty" ?
Thanks.