[Casa-framework] ::casac::variant as output parameter crashes casapy

Raymond Rusk Raymond.Rusk at nrc-cnrc.gc.ca
Wed Dec 20 17:17:18 EST 2006


Hi Darrell,

I have added a trivial 'void image::outputvariant(::casac::variant& v)' 
method which illustrates the problem as simply as I know how.  The method 
puts a value into the single variant output parameter and then prints "all 
is well so far" just before it returns.  Executed from casapy I see:

CASA <1>: x=ia.outputvariant()
all is well so far
./run: line 6: 16211 Segmentation fault      casapy

Raymond

On Wed, 20 Dec 2006, Darrell Schiebel wrote:

>
> I can't think of any reason why this would not be supported. When I am able, 
> I'll try it out.
>
> Darrell
>
> On Dec 20, 2006, at 4:42 PM, Raymond Rusk wrote:
>
>> Hi,
>> 
>> Can an output parameter be of type ::casac::variant?  I have been using
>> : : casac::variant as a return type without difficulty but I find that
>> casapy crashes when they are used as output parameters and contain
>> a value, even something as innocuous as:
>>
>>     out_pixelmask = ::casac::initialize_variant("");
>>     out_pixels = ::casac::initialize_variant("");
>> 
>> Raymond
>> 
>> -- 
>> Dr. Raymond Rusk                                        Dr. Raymond Rusk
>> ALMA Software Engineer                           Ingenieur Logiciel ALMA
>> National Research Council Canada   Conseil national de recherches Canada
>> Herzberg Institute of Astrophysics   L'Institut Herzberg d'Astrophysique
>> DRAO, P.O. Box 248                                    OFRA, B.P. Box 248
>> Penticton, BC V2A 6J9           |\^/|         Penticton, (C.-B.) V2A 6J9
>> Government of Canada         _|\|   |/|_          Gouvernement du Canada
>> Tel: (250)490-4347           >         <              Tel: (250)490-4347
>> Fax: (250)493-7767            >_./|\._<               Fax: (250)493-7767
>> Raymond.Rusk at nrc-cnrc.gc.ca                  Raymond.Rusk at nrc-cnrc.gc.ca
>

-- 
Dr. Raymond Rusk                                        Dr. Raymond Rusk
ALMA Software Engineer                           Ingenieur Logiciel ALMA
National Research Council Canada   Conseil national de recherches Canada
Herzberg Institute of Astrophysics   L'Institut Herzberg d'Astrophysique
DRAO, P.O. Box 248                                    OFRA, B.P. Box 248
Penticton, BC V2A 6J9           |\^/|         Penticton, (C.-B.) V2A 6J9
Government of Canada         _|\|   |/|_          Gouvernement du Canada
Tel: (250)490-4347           >         <              Tel: (250)490-4347
Fax: (250)493-7767            >_./|\._<               Fax: (250)493-7767
Raymond.Rusk at nrc-cnrc.gc.ca                  Raymond.Rusk at nrc-cnrc.gc.ca


More information about the Casa-framework mailing list