Topic
1 reply Latest Post - ‏2013-05-27T14:57:39Z by Robin400
Frank_O_Myers@IBM
Frank_O_Myers@IBM
12 Posts
ACCEPTED ANSWER

Pinned topic Errors when trying to pass structures using byvalue handle

‏2012-10-30T15:42:15Z |
Hi,
Is this a compiler bug, or did I miss something? Here are the messages I get:
IBM1501I S        197  Argument number 2 in ENTRY reference CONNECT has a different strong type than the corresponding
                       parameter.                                        
IBM1501I S        388  Argument number 2 in ENTRY reference DISCONN has a different strong type than the corresponding      
                       parameter.    
In both cases, the second parameter is a handle variable DIAP, which is ALWAYS defined as HANDLE to the same type, BYVALUE.
And, as you can see, those attributes (BYVALUE and HANDLE to the same Type) are also the same used when defining the called functions...  but I still get the errors.
Here are the data attributes from the listing:
   58   DIAP                            PARAMETER BYVALUE HANDLE DIAG_AREA_T   
                                        Refs: 94                               
  143   DIAP                            PARAMETER BYVALUE HANDLE DIAG_AREA_T   
                                        Refs: 181 197                          
  228   DIAP                            PARAMETER BYVALUE HANDLE DIAG_AREA_T   
                                        Refs: 234                              
  335   DIAP                            PARAMETER BYVALUE HANDLE DIAG_AREA_T   
                                        Refs: 388                              
  402   DIAP                            PARAMETER BYVALUE HANDLE DIAG_AREA_T   
  394   DISCONN                         CONSTANT                               
                                        ENTRY( BYADDR CHARACTER(4) UNALIGNED,  
                                               BYVALUE HANDLE DIAG_AREA_T )    
                                        RETURNS( BYADDR FIXED BIN(31,0) )      
                                        OPTIONS( LINKAGE ( OPTLINK ) )         
                                        Refs: 388                              
  322   CONNECT                         CONSTANT                                  
                                        ENTRY( BYADDR CHARACTER(4) UNALIGNED,     
                                               BYVALUE HANDLE DIAG_AREA_T )       
                                        RETURNS( BYADDR FIXED BIN(31,0) )         
                                        OPTIONS( LINKAGE ( OPTLINK ) )            
                                        Refs: 197                                 
Thanks, in advance for any suggestions you can provide.
 
Frank

Updated on 2012-10-30T15:43:45Z at 2012-10-30T15:43:45Z by Frank_O_Myers@IBM
  • Robin400
    Robin400
    29 Posts
    ACCEPTED ANSWER

    Re: Errors when trying to pass structures using byvalue handle

    ‏2013-05-27T14:57:39Z  in response to Frank_O_Myers@IBM

    Hi,

       What you haven't provided are the function references corresponding to the diagnostics.