Hi Geoff,
Are you using a signed 16-bit variable for the index? If you were
then if you increment it past 32K it will go negative and jump back
past the start of the array. I've written my code using 32-bit
variables (as that's what the CPU uses natively) and don't have many
memory issues.
In my application I have lots of arrays and structures larger than
64kB, and a few over 512KB.
Posting snippets of your code may help diagnose what's going on.
Regards,
PJE
--- In "geoffveale" <> wrote:
>
> WARNING: This may be a novice question..
>
> In the past I wrote c code for Dos and I could not have an array
that
> exceeded 64kB. When I started with TS-Linux on my TS-7260 I thought
> that I might be able to have arrays greater than 64kB. To my
> displeasure I have found that if I use arrays of more that 64kB I
> eventually get segmentation fault errors. If I keep my arrays to
less
> than 64kB the problems disappear.
>
> Is this normal for Linux or specific to the TS-7000 series?
>
> Geoff Veale
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|