|
Post by Gene Dougherty on Jul 31, 2002 17:29:19 GMT
Hi. I recently got Q Basic 4.5 installed because I received 3 programs from a friend in Europe. Both are written in Q Basic 4.5. They are scientific programs which would be hard to rewrite. I'd like to take a look and run them using some of our data to see if they are useful and/or if we want to work with them further to make them more useful. The first, short program runs fine, and provided some useful output. (So, even though I am not a QBASIC expert, I can run it.) But the second related English-commented program said "module too large" when I tried to run it and stopped running somewhere in the middle, with no output. So then I tried to run the third program (this one is commented in Spanish but should be similar to program # 2). I think my friend redid the comments to try to make program #2 more readable for his English-speaking friends. While I am not great in Espanol, program #3 looked fine to me. It started to run okay, but then I got a message that said "out of memory". Any ideas for what I could do ? Could I assign more memory or change Q Basic 4.5 defaults to make more memory available ? If so, how ? Would Q Basic 7.1 work ? Should I try visual basic ? Please help. As I said, if I could get either # 2 or # 3 to work, this would be most useful to know. Thank you, in advance, for your help. Gene
|
|
Elias
Junior Member
Posts: 78
|
Post by Elias on Jul 31, 2002 23:37:33 GMT
ok before trying this make copies of the modules, when you make changes have in mind that:
RESUME NEXT statement uses a bunch of memory. DIM SHARED uses more memory that using DIM in the sub
OK. FIRST HAVE AT HAND A COPY OF THE ORIGINAL PROGRAM. THEN REMOVE ALL OF THE COMMENTS ('STUFF) BECAUSE THAT USES A LOT OF MEMORY. NEXT CHANGE ALL LONG DESCRIPTIONS TO SHORT DESCRIPTIONS ( YOU CAN USE REPLACE, BE SURE TO REPLACE ALL AN IN ALL MODULES) FOR EXAMPLE, YOU CAN CHANGE LongExpresionarray to LEA and such... be sure to change all of them or there will be a conflict. be sure not to use an already-used name. next use the metastatment '$dynamic
i think thats all, oh.. one more thing, in case you make a bad step you have the back up.
|
|
Ziggi
Full Member
Posts: 87
|
Post by Ziggi on Aug 2, 2002 6:33:19 GMT
This is some thing related to my question "CREATING OVERLAYS" When programmers working with big programs using "OVERLAYS". Those are modules which are loaded in upper memory and call when needed so program can work in or below 600K.But about your problem; if you want to display some big text try to read it from file specially if there two parts English and Spanish, a variable can be initialized to a certain name in configuration file and that name will correspond to text in particular language. Maybe this will help.
Ziggi
|
|