Hi,
I'm retrieving a recordset then using it to populate a MSFlexGrid. I keep getting an out of memory error. But it looks like I still have a little physical memory left and lots of virtual. Is there a limit to the size of an MSFlexGrid?
Here are my memory usage stats with my program running but before I get the rs and populate the grid:
Total Physical Memory: 261,616 KB
Available Physical Memory: 36,920 KB
Total Virtual Memory: 697,812 KB
Available Virtual Memory: 268,524 KB
Page File Space: 436,196 KB
Here is what my system info says after I start populating the grid and when I get the error.
Total Physical Memory: 261,616 KB
Available Physical Memory: 7,732 KB
Total Virtual Memory: 697,812 KB
Available Virtual Memory: 213,584 KB
Page File Space: 436,196 KB
My grid is 250 columns wide, and at the point of the memory error, it gets to about 1100 rows. So it's roughly 280,000 cells.
It seems to me like even if the physical is too low, it should just use virtual. Does this sound like a VB problem or a Windows problem. I'm on Win2K. I could just limit the amount of data the user gets at once, but I would really like to know why the virtual memory isn't being used.
Any help would be greatly appreciated.
Thanks,
Shanti
I'm retrieving a recordset then using it to populate a MSFlexGrid. I keep getting an out of memory error. But it looks like I still have a little physical memory left and lots of virtual. Is there a limit to the size of an MSFlexGrid?
Here are my memory usage stats with my program running but before I get the rs and populate the grid:
Total Physical Memory: 261,616 KB
Available Physical Memory: 36,920 KB
Total Virtual Memory: 697,812 KB
Available Virtual Memory: 268,524 KB
Page File Space: 436,196 KB
Here is what my system info says after I start populating the grid and when I get the error.
Total Physical Memory: 261,616 KB
Available Physical Memory: 7,732 KB
Total Virtual Memory: 697,812 KB
Available Virtual Memory: 213,584 KB
Page File Space: 436,196 KB
My grid is 250 columns wide, and at the point of the memory error, it gets to about 1100 rows. So it's roughly 280,000 cells.
It seems to me like even if the physical is too low, it should just use virtual. Does this sound like a VB problem or a Windows problem. I'm on Win2K. I could just limit the amount of data the user gets at once, but I would really like to know why the virtual memory isn't being used.
Any help would be greatly appreciated.
Thanks,
Shanti