Hi,
I've seen some issues on this already, but I'm getting stuck.
What I'm trying to do is load database tables into memory for speed. I would prefer to put them all in 1 array (so 3 dimensions).
If I count the maximum values for colcount and rowcount I have to redim the global array : IDX(395,6363,165)
I believe this is still well within the maximum allowed elements for an array but of course memory is an issue here. I get an error 7. I've tried putting the first dimension on 5 which works, 10 is already a problem.
I'm having more than enough memory left (~126 MB) so that should do.
So I tried GlobalAlloc(%GMEM_FIXED, iBytes) where iBytes = 40*1024*1024 so that 40 Mb. The system monitor shows the drop but it still doesn't work.
How should I handle this?
Hope someone can help,
Jeroen Brouwers
------------------
I've seen some issues on this already, but I'm getting stuck.
What I'm trying to do is load database tables into memory for speed. I would prefer to put them all in 1 array (so 3 dimensions).
If I count the maximum values for colcount and rowcount I have to redim the global array : IDX(395,6363,165)
I believe this is still well within the maximum allowed elements for an array but of course memory is an issue here. I get an error 7. I've tried putting the first dimension on 5 which works, 10 is already a problem.
I'm having more than enough memory left (~126 MB) so that should do.
So I tried GlobalAlloc(%GMEM_FIXED, iBytes) where iBytes = 40*1024*1024 so that 40 Mb. The system monitor shows the drop but it still doesn't work.
How should I handle this?
Hope someone can help,
Jeroen Brouwers
------------------
Comment