Releasing Resources
Posted: Thu Mar 02, 2006 5:58 pm
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.
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.