Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Since we installed Version of the RPG compiler with the attribute o/s current we have been encountering problems with a technique that previously worked ok.
Module créé en édition . . . . . . . . . . . . : V6R1M0
Module créé pour édition . . . . . . . . . . . : V6R1M0
With the third parameter we pass the address to a data structure :-
wrkCRtn = cpReadI( XmoYAccVal : XmoCValeur
: %addr(vlxopc) )
In the called function we do the following
PcpRead B Export
d Pi Like( Tint )
d ii_YAcc 1 Value
d ii_CVal 12 Value
d PtrVlXOpc Like( TPointer ) Value
d Options( *NoPass )
d vlxopc e ds extname(dvlxopc)
d Based(PtrVlxOpc)
Has anybody had problems with this technique ?
Yesterday I got a messages that an objet had been partially or entirely destroyed and could not be used followed by a recursion exception !!
I recompile the program and it now works ! I suppose the allocation of memory may be a bit different and as such the (I suspect) pointer error no longer occurs.
I am thinking of identifying and where possible replacing this technique ( %addr ) by passing the ds itself.
I did read a comment my Hans Boldt that this technique should be avoided. I should perhaps leave the use of this technique for use with API access only.
What do you all think
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.