Progress
Programming
Handbook
Using Shared Record Buffers with Aliases
Be careful when using shared buffers with aliases. If you reference a shared buffer after changing the alias that initially was used in defining it, a run-time error results:
In this example, procedure
main2.p
callsmakebuf.p
, which in turn callsdisp.p
. The alias myalias is created inmain.p
, with reference to database sports1. Inmakebuf.p
, the shared buffer mybuf is defined for the table myalias.customer. Then, in the next line, myalias is changed, so that it now refers to database sports2. When an attempt is made to reference shared buffer mybuf in proceduredisp.p
, a run-time error occurs, with the message “disp.p unable to find shared buffer for mybuf.”
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |