03-20-2003, 05:51 AM
Alright, I've written a large program in QB4.5 editor and it runs fine from the QB environment, but gives me an "Out of Memory" error when I try to compile it to .EXE file.
My computer: P2-350, running Windows 2000 Pro
The program: A multiplayer BBS door game
Written in: QB4.5 with additional Easy-Door Library routines(QB_EDR.LIB, QB_EDR.QLB)
What I've tried:
1. Using QB7.1 -- no help, the easy-door routines only work for 4.5
2. cutting my main code (filename.bas) into modules. this didn't help. I still got the same message.
3. I've already moved lots of code into subroutines and made basic include file for all my declarations and global variables.
4. I've already tried downloading Crescent's MAKEQLB program, which is supposed to make a new library out of all the subroutines that my program uses (essentially making it so that I don't need the ENTIRE easy-door library, just the routines from it that get called during my program). However, when I try running MAKEQLB on my program, it works for a few seconds, gives me a huge list of routines that are declared but not called, and then kicks out, giving me an error 64 and not creating any libraries.
5. I've heard that there's a program by MicroHelp called PREQLB that does basically the same thing but I can't find it anywhere. So, I haven't tried it, yet.
6. I've already reduced my code to as few variables as possible, and loaded all arrays as $DYNAMIC, and cleared them from memory when they're not in use.
7. I've gone through my code and cut as many unneccesary varibles out. I can't find many other ways to make the code more efficient than it is.
8. I've already tried compiling the program to .exe outside of the environment by manually running BC (with and without the /s switch) and LINK, but I still get the same "Out of Memory" error.
I'm really baffled by this one. The code's pretty long, but it's not THAT long. I guess maybe the fact that it's including four BI files (the one I made, which has my declarations and global variables, plus 3 files used by Easy-Door) is sucking up all available memory?
Does anybody know any of the following:
1. a way that I could free up more memory for the compilation?
2. any way that I could make my code more efficient (I'll gladly send the code, all necessary libraries, etc. to anybody who supplies an Email addy)?
3. any way to reduce the size of the library (easy-door) to only include routines that i use in my program?
I can be reached as Jasmydae@hotmail.com. Alternatively I'm on AOL Instant Messenger as "Shimmer99" and I'll be checking this forum regularly. Please help if you know anything that would be useful! I spent about 3 weeks on this program and I can't test it on my BBS until it's compiled!
*peace*
Meg.
My computer: P2-350, running Windows 2000 Pro
The program: A multiplayer BBS door game
Written in: QB4.5 with additional Easy-Door Library routines(QB_EDR.LIB, QB_EDR.QLB)
What I've tried:
1. Using QB7.1 -- no help, the easy-door routines only work for 4.5
2. cutting my main code (filename.bas) into modules. this didn't help. I still got the same message.
3. I've already moved lots of code into subroutines and made basic include file for all my declarations and global variables.
4. I've already tried downloading Crescent's MAKEQLB program, which is supposed to make a new library out of all the subroutines that my program uses (essentially making it so that I don't need the ENTIRE easy-door library, just the routines from it that get called during my program). However, when I try running MAKEQLB on my program, it works for a few seconds, gives me a huge list of routines that are declared but not called, and then kicks out, giving me an error 64 and not creating any libraries.
5. I've heard that there's a program by MicroHelp called PREQLB that does basically the same thing but I can't find it anywhere. So, I haven't tried it, yet.
6. I've already reduced my code to as few variables as possible, and loaded all arrays as $DYNAMIC, and cleared them from memory when they're not in use.
7. I've gone through my code and cut as many unneccesary varibles out. I can't find many other ways to make the code more efficient than it is.
8. I've already tried compiling the program to .exe outside of the environment by manually running BC (with and without the /s switch) and LINK, but I still get the same "Out of Memory" error.
I'm really baffled by this one. The code's pretty long, but it's not THAT long. I guess maybe the fact that it's including four BI files (the one I made, which has my declarations and global variables, plus 3 files used by Easy-Door) is sucking up all available memory?
Does anybody know any of the following:
1. a way that I could free up more memory for the compilation?
2. any way that I could make my code more efficient (I'll gladly send the code, all necessary libraries, etc. to anybody who supplies an Email addy)?
3. any way to reduce the size of the library (easy-door) to only include routines that i use in my program?
I can be reached as Jasmydae@hotmail.com. Alternatively I'm on AOL Instant Messenger as "Shimmer99" and I'll be checking this forum regularly. Please help if you know anything that would be useful! I spent about 3 weeks on this program and I can't test it on my BBS until it's compiled!
*peace*
Meg.