Hi ppl,

I must add around 17K of const data in my program and don't want to deal
with dbs. The data looks like this:

#pragma pcrelconstdata on

const UInt8 BUF[1342][13]=
{
 {0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,},
 {0x06,0x02,0x82,0x06,0x01,0x0A,0x00,},
 {0x06,0x02,0x82,0x06,0x01,0x0A,0x01,},
 {0x07,0x02,0x82,0x06,0x01,0x0A,0x01,0x00,},
...

so... everything's ok... not so good since I can't move this to other
segment, it seems to like the first one so I had to move a couple of code to
free space for the data but when I do that it compilled with no errors.

so let's talk about the real life - I saw that inside my program when I
access this array I got invalid data. So I debugged it and when I view it
it's ok - the data is there, but when I try to access it (e.g. BUF[0][0])
I'm getting something odd... I tried copying part of memory to another array
but still getting garbage. What's wrong?

Thanks

Update: yep, I know what's wrong - the array in memory is at 00422870 while
I'm getting pointer to it at 003E999A... so...?
PS2: I've tried making it plain - const
UInt8[xxxx]={0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05....} the
same.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to