M
Mario Viertel
Hi,
I have a Problem with the following Code:
//IDL
typedef sequence<float> FloatSeq;
struct MyStruct {
FloatSeq fs;
};
//C++
MyStruct_var myStruct;
FloatSeq_var fs = new FloatSeq;
fs->length(5);
for(CORBA::ULong i=0; i<fs->length(); i++) {
fs = 4711.0 / (i+1);
}
myStruct->fs = fs;
At runtime the program interrupts after the loop.
My question: How can I assign the local 'fs' variable to the structure
'fs' variable?
TIA
Mario
I have a Problem with the following Code:
//IDL
typedef sequence<float> FloatSeq;
struct MyStruct {
FloatSeq fs;
};
//C++
MyStruct_var myStruct;
FloatSeq_var fs = new FloatSeq;
fs->length(5);
for(CORBA::ULong i=0; i<fs->length(); i++) {
fs = 4711.0 / (i+1);
}
myStruct->fs = fs;
At runtime the program interrupts after the loop.
My question: How can I assign the local 'fs' variable to the structure
'fs' variable?
TIA
Mario