Qbasicnews.com

Full Version: QB45 Error msgs Out of --Data,-String,-Stack space
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Is it possible in QB45 to increase the available space required for any of the abv out of space conditions? I have a genealogy program which uses increased amts of stored :bounce: data, strings and stack requirements as the number of generations to be displayed is increased. I am OK up to 11 generations back, but balk at 12. Believe I have tried all availble methods in manuals to reduce these requirements, including Clear to set Stack space but have reached dead end.
I vagueally remember from long past that Basic sets up a work space which is invaded from both top and bottom until they meet, then curtains. Have never heard of a way to increase this. I have 1.4 gig Athalon computer with 512 megs mem and 40 gig HD less than 1/2 full.
Thank you
Bdecker
QB can only utilize a very small portion of your 512MB of memory. If you want to be able to use more, you're going to have to make your program use XMS or EMS, or just switch your project to a newer language like VB or C++.
you can compile from outside the ide to save some space.. also, try $DYNAMIC at the start of your prog.
Does your program use arrays? If so, are they defined as near or far arrays?
*****
Moneo, what do you mean define them as near or far arrays?
What's the diffrence and how do you do it?
I knew I'd be sorry for mentioning near/far arrays, 'cause explaining it as tough as telling kids that there's no Santa Claus.

QbBasta, this is BDecker's problem, so if he also doesn't what near/far arrays are, then I'll have to explain it. Please reply BDecker.
*****
Many thanks Chris. I was afraid that might be the answer, but was hoping there might be a way to transfer some the array data out to disk and call it back when needed for the print out. Have had half a mind to try converting to VB for which I have had an elementary course at local Comm College but have never followed up. Have had some renewed interest recently in my Pedegree chart from our family Association so I may give it a whirl.
Bdecker
Thanks all- Iguess I didn't see all the comments first time around. I am using Dynamic Arrays, and if I once knew just what far and near arrays were I don't recall it now nor can I find ref to it in my QB4.5 manuals of VB 6 3rd party book. Would appreciate a "refresher''
Bdecker.
Moneo, come on Big Grin
Wait a second, do you mean arrays in near/far memory? You can only allocate arrays in EMS memory in PDS7.1 and VBDOS... In 4.5 you have to allocate it by hand and dump memory there.

From what I remember bdbecker, near memory is memory in the 640k dos grabs when you boot up, and you can access more of your ram (far memory) with either EMS, XMS, or protected memory.

bdbecker, you can increase stack space with CLEAR, but it still cuts in to the available 640k in dos (i think, not know). and you can use a library (or do it manually, but it's better to use a library) to access EMS or XMS memory in qb4.5 to break free of dos's 640k. PDS allows you to allocate like a meg of EMS memory in strings, or (i'm not sure about this) arrays.
Pages: 1 2 3