Michal Seliga wrote:

> in both cases you must be careful to define const data in same
> segment as code which is using them, otherwise application will
> crash. workaround for this is to have two variables, 1 with
> const data and other one which is pointing to it and assign it
> value once at beginning.

Are you sure of this? I currently create a const array

UInt8 gColumnAttributes[ MaxColumns ] = {...};

in my first segment and use it in another with

extern UInt8 gColumnAttributes[];

under CW 9.3, without a crash.


--
Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to