Qbasicnews.com
March 21, 2019, 07:24:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: "out of memory" problem, can anyone help?...  (Read 1895 times)
kc
New Member

Posts: 23


« on: March 14, 2004, 06:43:45 PM »

What are some of the basic things to do, ie is it my codes are too long or too many variables/arrays/SUBs/ etc.

Instead of bore you with the LONG codes. please give some general suggestions.

Thanks
kc
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #1 on: March 14, 2004, 08:22:18 PM »

Reduce number of shared arrays. Use $DYNAMIC. Modularize your code. Be sure that you are not wasting data space.

http://faq.qbasicnews.com/?blast=PushingTheLimitsOfQb
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #2 on: March 15, 2004, 12:00:39 AM »

use integers.
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Neo
Na_th_an
*****
Posts: 2150



« Reply #3 on: March 16, 2004, 10:25:54 AM »

Huh? Wink


If you have many 'boolean' variables you can also use one INTEGER to store up to 16 boolean variables, instead of declaring 16 INTEGERs which can only hold 0 or FFFFh. Especially when making arrays of boolean-integers.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!