I have an application many years ago that is broken up in to several modules. I use the LINK command at the end of each module to run th next module. I recently expanded the arrays (both string and integer) in the first module but when it trys to link to the second module it blows up. The interesting thing is I can run the first module, stop it before it links and then run the second module by itself and it runs perfectly. I am assuming it is because Qbasic has reinitialized the string space when I run the second module.
I then tried a batch file where I run the first module (without the LINK command) and then on a separate line run the second module. Still blows up and this time it says the string space is corrupt so again it looks like a resource issue.
I am not passing any parameters thru common or any of the arrays so if I can blow it all away it would be fine.
I also tried the ERASE and CLEAR commands on the arrays in the first program with no better results.
Any ideas or help??
Thanks.
Releasing Resources
Moderators:Administrator, Global Moderator
Im not familiar with your usage of LINK.
Now, other basic flavors have a link command similar to chain but where
chain closes files and link does not.
In QuickBasic the only "LINK" I am familiar with is in the compiling to link
modules together into one program.
As we get farther and farther from pure DOS 5 with the win versions, im
afraid it's going to be harder and harder to compile programs and run them. One of my computers is running ME now and some of my programs
will no longer compile on it, and large arrays are not a big factor in it.
You might try something like the PowerBasic Console compiler that will give you more memory available with lots of the syntax unchanged or
very similar to QuickBasic + the fact that it will be a 32bit windows program.
Now, other basic flavors have a link command similar to chain but where
chain closes files and link does not.
In QuickBasic the only "LINK" I am familiar with is in the compiling to link
modules together into one program.
As we get farther and farther from pure DOS 5 with the win versions, im
afraid it's going to be harder and harder to compile programs and run them. One of my computers is running ME now and some of my programs
will no longer compile on it, and large arrays are not a big factor in it.
You might try something like the PowerBasic Console compiler that will give you more memory available with lots of the syntax unchanged or
very similar to QuickBasic + the fact that it will be a 32bit windows program.