Hi All,

I think that the support for lists in the current adb binding is broken...
I'm using the current svn state of Axix2/C (the release 1.0.0 is as well 
seriously broken for lists) and in the generated function 
adb_calculate_set_param1 (which has to set a parametr of the type 
axutil_array_list_t) itgenerates the following code:

            /**
             * setter for param1
             */
            axis2_status_t AXIS2_CALL
            adb_calculate_set_param1(
                    adb_calculate_t* _calculate,
                    const axutil_env_t *env,
                    axutil_array_list_t*  param_param1)
             {
                
                 int size = 0;
                

                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
                if(!_calculate)
                {
                    return AXIS2_FAILURE;
                }

                
                  size = axutil_array_list_size( param_param1, env);
                  
                  if ( size < 0 )
                  {
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "param1 has less 
than minOccurs(0)"
                                                 " %d :: %s", 
env->error->error_number,
                                                 
AXIS2_ERROR_GET_MESSAGE(env->error));
                      return AXIS2_FAILURE;
                  }
                _calculate->attrib_param1 = axutil_strdup(env, param_param1);
                    
                return AXIS2_SUCCESS;
             }



The bug is in the line 
        _calculate->attrib_param1 = axutil_strdup(env, param_param1);

this clearly cannot work (axutil_strdup thinks that it is copying a string!) 
so that my program crashes short after that ....


Please help ...

Regards,
Plamen

_______________________________________________________________________________
Real to Real Software GmbH
Registergericht Aschaffenburg, HRB 9364
Geschäftsführer: Antoaneta Kostadinova

This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message, which arise as a result of e-mail transmission. If 
verification is required please request a hard-copy version. 
Real to Real Software GmbH, Alzenauer Str. 15, D-63796 Kahl, Germany, 
www.Real-2-Real.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to