KaneII
Jul 17th, 2001, 11:23 AM
two questions (which may be interlinked):
1)
I often get 'out of memory' errors while running a game, which I'm making. It uses quite a lot of memory (about 10 MB), but even then I have 100s of MB of free disk space for virtual memory.
Also, the largest variables are declared as public in a module so if I'm not mistaken, they should be allocated from the heap, not from the stack, so it can't be that the program runs out of stack space.
What could be causing this error?
2)
The program uses a lot of device contexts. Are device contexts allocated from video memory?
Could VB be referring to video memory when it gives the out of memory error?
Any suggestions are more than welcome!
1)
I often get 'out of memory' errors while running a game, which I'm making. It uses quite a lot of memory (about 10 MB), but even then I have 100s of MB of free disk space for virtual memory.
Also, the largest variables are declared as public in a module so if I'm not mistaken, they should be allocated from the heap, not from the stack, so it can't be that the program runs out of stack space.
What could be causing this error?
2)
The program uses a lot of device contexts. Are device contexts allocated from video memory?
Could VB be referring to video memory when it gives the out of memory error?
Any suggestions are more than welcome!