D
dbeavon
Guest
I have a dataset that is a member of a logic class, and the dataset is listed as REFERENCE-ONLY. The intention is that, for performance sake and for memory conservation, I want the class rely on an instance that is created elsewhere and is given to the class for reference. Here is the dataset. It uses compilation parameters: 1 for REFERENCE-ONLY 2 for PRIVATE 3 for INSTANCE QUALIFIER DEFINE {2} TEMP-TABLE TT{3}_BomHeader NO-UNDO {1} FIELD OurRecId AS CHARACTER FIELD BomCode AS CHARACTER . DEFINE {2} DATASET DS{3}_AsmBom {1} FOR TT{3}_BomHeader . It is used in my BomLogic class like so. Note that this makes the dataset into a reference-only member. {app/Production/Maintenance/Bom/Assembly/AsmBomData.i REFERENCE-ONLY} The goal is that once the dataset reference is provided to the class, then the class will be able to continue maintaining that data indefinitely. However, this is not always working as expected. In some scenarios the dataset reference will become invalidated and will no longer be available anymore even though it had been previously used. The error I get is : Attempt to reference uninitialized temp-table. (12378) I'm not fully understanding why the AVM would pull my dataset reference away from this class after it had been previously available.
Continue reading...
Continue reading...